don't try to draw an halo rect if the size is empty (amarok action icons look better now)

svn path=/trunk/KDE/kdelibs/; revision=1065132
This commit is contained in:
Marco Martin 2009-12-22 16:02:26 +00:00
parent 923d772a85
commit 010bcc9629

View File

@ -1059,7 +1059,8 @@ void IconWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
PaintUtils::shadowBlur(shadow, 2, d->shadowColor);
painter->drawImage(textBoundingRect.topLeft() + shadowPos, shadow);
} else if (!(d->text.isEmpty() && d->infoText.isEmpty())) {
} else if (!(d->text.isEmpty() && d->infoText.isEmpty()) &&
!textBoundingRect.isEmpty()) {
QRect labelRect = d->labelRectangle(option, icon, d->text).toRect();
foreach (QRect rect, d->haloRects) {