projects
/
konrad/qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
390d842
)
Defensive Programming
author
Alan Alpert
<alan.alpert@nokia.com>
Fri, 23 Sep 2011 03:24:35 +0000 (13:24 +1000)
committer
Qt by Nokia
<qt-info@nokia.com>
Fri, 23 Sep 2011 04:27:43 +0000 (06:27 +0200)
Task-number: QTBUG-21623
Change-Id: Ib906e6b50041d4e72034d6828d4dc7c503ec7bb4
Reviewed-on: http://codereview.qt-project.org/5426
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/particles/qsgparticlesystem.cpp
patch
|
blob
|
history
diff --git
a/src/declarative/particles/qsgparticlesystem.cpp
b/src/declarative/particles/qsgparticlesystem.cpp
index
26c6d05
..
f886865
100644
(file)
--- 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);