r19653 by jghali - #12841: "Edit > Deselect All" may lead to crash (backport from #12668)

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 30 17:38:56 UTC 2014


Author: jghali
Date: Sun Nov 30 17:38:56 2014
New Revision: 19653

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19653
Log:
#12841: "Edit > Deselect All" may lead to crash (backport from #12668)

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

Modified: branches/Version14x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19653&path=/branches/Version14x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribus.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribus.cpp Sun Nov 30 17:38:56 2014
@@ -5539,7 +5539,10 @@
 
 void ScribusMainWindow::deselectAll()
 {
-	if (doc->appMode == modeEdit)
+	bool inEditMode = (doc->appMode == modeEdit ||
+					   doc->appMode == modeEditClip ||
+					   doc->appMode == modeEditGradientVectors);
+	if (inEditMode)
 	{
 		if (doc->m_Selection->count() <= 0)
 			return;




More information about the scribus-commit mailing list