--- a/src/hbcore/image/hbiconanimator.cpp Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbcore/image/hbiconanimator.cpp Fri Sep 17 08:32:10 2010 +0300
@@ -203,10 +203,6 @@
if (d->animation && !d->view) {
d->animation->setView(0);
}
-
- if (d->animation && d->mLoopCountSet && !d->animation->loopCountSet()) {
- d->animation->setLoopCount(d->mLoopCount);
- }
}
}
@@ -222,6 +218,9 @@
QIcon::Mode mode,
QIcon::State state) const
{
+ if (d->animation && d->mLoopCountSet && !d->animation->loopCountSet()) {
+ d->animation->setLoopCount(d->mLoopCount);
+ }
d->icon.paint(painter, rect, aspectRatioMode, alignment, mode, state);
}