summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-23 02:45:20 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-23 02:48:52 (GMT)
commit4890660acfc55db4e4e79375d562e729935092bd (patch)
tree74fd501b50552ab6f7badcffb842b5b26a5b1bc3 /src/declarative/extra
parent0c412288e68aeccf9d17012b3fee944e99330e25 (diff)
downloadQt-4890660acfc55db4e4e79375d562e729935092bd.zip
Qt-4890660acfc55db4e4e79375d562e729935092bd.tar.gz
Qt-4890660acfc55db4e4e79375d562e729935092bd.tar.bz2
Don't call qDrawPixmaps if there are no particles to paint.
Diffstat (limited to 'src/declarative/extra')
-rw-r--r--src/declarative/extra/qfxparticles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/extra/qfxparticles.cpp b/src/declarative/extra/qfxparticles.cpp
index 36fdd79..8e77c34 100644
--- a/src/declarative/extra/qfxparticles.cpp
+++ b/src/declarative/extra/qfxparticles.cpp
@@ -1098,7 +1098,7 @@ void QFxParticles::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget
void QFxParticlesPainter::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
{
- if (d->image.isNull())
+ if (d->image.isNull() || d->particles.isEmpty())
return;
const int myX = x() + parentItem()->x();