r17829 by craig - Fix use of var before set problem

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 27 16:56:53 UTC 2012


Author: craig
Date: Sat Oct 27 16:56:53 2012
New Revision: 17829

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17829
Log:
Fix use of var before set problem

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17829&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp Sat Oct 27 16:56:53 2012
@@ -96,7 +96,7 @@
  	if (button == stringButton)  oldColor = syntaxColors->stringColor;
  	if (button == numberButton)  oldColor = syntaxColors->numberColor;
 
-	QColor color = QColorDialog::getColor(color, this);
+	QColor color = QColorDialog::getColor(oldColor, this);
 	if (color.isValid())
 	{
 		setButtonIcon(button, color);




More information about the scribus-commit mailing list