aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgparticlesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/particles/qsgparticlesystem.cpp')
-rw-r--r--src/declarative/particles/qsgparticlesystem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgparticlesystem.cpp b/src/declarative/particles/qsgparticlesystem.cpp
index 26c6d05264..f88686595f 100644
--- a/src/declarative/particles/qsgparticlesystem.cpp
+++ b/src/declarative/particles/qsgparticlesystem.cpp
@@ -938,6 +938,9 @@ void QSGParticleSystem::particleStateChange(int idx)
void QSGParticleSystem::moveGroups(QSGParticleData *d, int newGIdx)
{
+ if (!d || newGIdx == d->group)
+ return;
+
QSGParticleData* pd = newDatum(newGIdx, false, d->systemIndex);
pd->clone(*d);
finishNewDatum(pd);