Fix build

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=701237
This commit is contained in:
Matt Broadstone 2007-08-17 18:55:55 +00:00
parent 93bf2933e4
commit 1fb3bef9bb

View File

@ -87,7 +87,7 @@ void Label::paintWidget(QPainter *p, const QStyleOptionGraphicsItem *option, QWi
Q_UNUSED(widget);
p->setPen(d->textPen);
p->drawText(localGeometry(), d->alignment | Qt::TextWordWrap, d->text);
p->drawText(option->rect, d->alignment | Qt::TextWordWrap, d->text);
}
}