summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra/qfxparticles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/extra/qfxparticles.cpp')
-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();