r20052 by craig - #13025: Fix layermenu not updating layer palette

scribus-commit scribus-commit at lists.scribus.net
Mon May 4 17:46:23 UTC 2015


Author: craig
Date: Mon May  4 17:46:23 2015
New Revision: 20052

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20052
Log:
#13025: Fix layermenu not updating layer palette

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20052&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon May  4 17:46:23 2015
@@ -7234,10 +7234,10 @@
 
 void ScribusMainWindow::updateLayerMenu()
 {
+	if (doc==NULL)
+		return;
 	bool b = layerMenu->blockSignals(true);
 	layerMenu->clear();
-	if (doc==NULL)
-		return;
 	QStringList newNames;
 	doc->orderedLayerList(&newNames);
 	for (QStringList::Iterator it=newNames.begin(); it!=newNames.end(); ++it)




More information about the scribus-commit mailing list