r16399 by jghali - #9564: Action History holds action steps above maximum length

scribus-commit scribus-commit at lists.scribus.net
Wed Feb 23 00:44:07 CET 2011


Author: jghali
Date: Tue Feb 22 23:44:07 2011
New Revision: 16399

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16399
Log:
#9564: Action History holds action steps above maximum length

Modified:
    trunk/Scribus/scribus/undomanager.cpp

Modified: trunk/Scribus/scribus/undomanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16399&path=/trunk/Scribus/scribus/undomanager.cpp
==============================================================================
--- trunk/Scribus/scribus/undomanager.cpp (original)
+++ trunk/Scribus/scribus/undomanager.cpp Tue Feb 22 23:44:07 2011
@@ -507,7 +507,8 @@
 	{
 //		qDebug() << "UndoManager: Action executed:" << target->getUName() << state->getName();
 		state->setUndoObject(target);
-		stacks_[currentDoc_].action(state);
+		if (stacks_[currentDoc_].action(state))
+			emit popBack();
 	}
 	if (targetPixmap)
 		target->setUPixmap(oldIcon);




More information about the scribus-commit mailing list