r16404 by craig - #9778: Don't crash when there is no previous undo state on style application

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 26 16:55:49 CET 2011


Author: craig
Date: Sat Feb 26 15:55:49 2011
New Revision: 16404

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16404
Log:
#9778: Don't crash when there is no previous undo state on style application

Modified:
    branches/Version135/Scribus/scribus/pageitem_textframe.cpp

Modified: branches/Version135/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16404&path=/branches/Version135/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/pageitem_textframe.cpp (original)
+++ branches/Version135/Scribus/scribus/pageitem_textframe.cpp Sat Feb 26 15:55:49 2011
@@ -3645,7 +3645,7 @@
 		if (lastUndoAction == action && action != REPSAX && action != DELSAX)
 		{
 			ss = (SimpleState*) undoManager->getLastUndoState();
-			if (ss->undoObject() == this)
+			if (ss && ss->undoObject() == this)
 			{
 				if (action == PARAMFULL || action == PARAMSEL)
 				{




More information about the scribus-commit mailing list