Fix incorrect index when accumulating multiple removes.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 30 Sep 2011 07:52:27 +0000 (17:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Oct 2011 03:16:43 +0000 (05:16 +0200)
commit01a60f8771ba273d164042710364b7fd88168dcc
tree03e23d16d358301c215e194b378dccdd98b2530f
parent8662e071c22c2be2fdf15148b375eb3f6057aab7
Fix incorrect index when accumulating multiple removes.

Don't remove the intersecting count from the current remove twice,
and accumulate consecutive not just overlapping removes.

Change-Id: I426d764d980ee17ad114aa03ca4089da89c6aed2
Reviewed-on: http://codereview.qt-project.org/5902
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/declarative/util/qdeclarativechangeset.cpp
tests/auto/declarative/declarative.pro
tests/auto/declarative/qdeclarativechangeset/tst_qdeclarativechangeset.cpp