r19496 by craig - Fix oops

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 9 22:34:49 UTC 2014


Author: craig
Date: Tue Sep  9 22:34:48 2014
New Revision: 19496

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19496
Log:
Fix oops

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19496&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp (original)
+++ trunk/Scribus/scribus/appmodehelper.cpp Tue Sep  9 22:34:48 2014
@@ -62,7 +62,7 @@
 void AppModeHelper::setApplicationMode(ScribusMainWindow* scmw, ScribusDoc* doc, int newMode)
 {
 	//Application modes start at 1 (appmodes.h), canvasmodes start at 1000 (canvasmode.h)
-	assert(mode < submodeFirstSubmode);
+	assert(newMode < submodeFirstSubmode);
 
 	//If no doc and we end here, just reset the tool actions
 	if (doc==NULL)




More information about the scribus-commit mailing list