r17416 by jghali - add some comments to last fix

scribus-commit scribus-commit at lists.scribus.net
Tue Apr 3 21:05:06 UTC 2012


Author: jghali
Date: Tue Apr  3 21:05:06 2012
New Revision: 17416

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17416
Log:
add some comments to last fix

Modified:
    branches/Version14x/Scribus/scribus/scribusdoc.cpp

Modified: branches/Version14x/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17416&path=/branches/Version14x/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribusdoc.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribusdoc.cpp Tue Apr  3 21:05:06 2012
@@ -1867,6 +1867,8 @@
 	Page* page = Pages->takeAt(pageNumber);
 	QString oldPageName(page->pageName());
 	delete page;
+	// #10658 : renumber masterpages and masterpage objects
+	// in order to avoid crash after masterpage deletion
 	for (int i = 0; i < MasterPages.count(); ++i)
 		MasterPages.at(i)->setPageNr(i);
 	for (int i = 0; i < MasterItems.count(); ++i)




More information about the scribus-commit mailing list