r17933 by jghali - #11224 related : fix crash when ungrouping

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 3 21:45:32 UTC 2012


Author: jghali
Date: Mon Dec  3 21:45:32 2012
New Revision: 17933

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17933
Log:
#11224 related : fix crash when ungrouping

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17933&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Mon Dec  3 21:45:32 2012
@@ -15015,9 +15015,9 @@
 		itemSelection->delaySignalsOff();
 
 		// Delete items after delaySignalsOff() call so that palette are updated before item deletion
-		for (int b = 0; b < toDelete.count(); b++)
-		{
-			currItem = toDelete.at(0);
+		for (int i = 0; i < toDelete.count(); i++)
+		{
+			currItem = toDelete.at(i);
 			delete currItem;
 		}
 		if(activeTransaction)




More information about the scribus-commit mailing list