r14601 by jghali - #8756 : Error when entering Document Setup and freezes after apply any change Temporarily disable undo when calling ScribusDoc->reformPages()

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 1 19:47:02 CET 2010


Revision: 14601
Author: jghali
Date: 2010-01-30T22:57:31.528626Z
Commit message: #8756 : Error when entering Document Setup and freezes after apply any change
Temporarily disable undo when calling ScribusDoc->reformPages()

Changeset: 
M  /branches/Version135/Scribus/scribus/scribusdoc.cpp

Diffs:
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp	(revision 14600)
+++ scribus/scribusdoc.cpp	(revision 14601)
@@ -4317,6 +4317,7 @@
 	}
 	if (!isLoading())
 	{
+		undoManager->setUndoEnabled(false);
 		uint docItemsCount=Items->count();
 		for (uint ite = 0; ite < docItemsCount; ++ite)
 		{
@@ -4346,6 +4347,7 @@
 			}
 			item->setRedrawBounding();
 		}
+		undoManager->setUndoEnabled(true);
 	}
 
 	if(isLoading() && is12doc)




More information about the scribus-commit mailing list