unbreak painting

svn path=/trunk/KDE/kdelibs/; revision=1100826
This commit is contained in:
Marco Martin 2010-03-08 19:03:20 +00:00
parent 2f308de3da
commit f7169d811c

View File

@ -240,7 +240,7 @@ void FlashingLabel::paint(QPainter *painter, const QStyleOptionGraphicsItem *opt
Q_UNUSED(option)
Q_UNUSED(widget)
if (d->anim.data()) {
if (d->anim.data() && d->anim.data()->state() == QAbstractAnimation::Running) {
Plasma::Animation *animation = d->anim.data();
painter->drawPixmap(0, 0, qvariant_cast<QPixmap>(animation->property("currentPixmap")));
} else {