unbreak painting
svn path=/trunk/KDE/kdelibs/; revision=1100826
This commit is contained in:
parent
2f308de3da
commit
f7169d811c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user