r20175 by jghali - fix incorrect display of color name in style manager when a color is set to the "None" color

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 18 20:48:59 UTC 2015


Author: jghali
Date: Thu Jun 18 20:48:59 2015
New Revision: 20175

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20175
Log:
fix incorrect display of color name in style manager when a color is set to the "None" color

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

Modified: branches/Version14x/Scribus/scribus/smcolorcombo.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20175&path=/branches/Version14x/Scribus/scribus/smcolorcombo.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/smcolorcombo.cpp (original)
+++ branches/Version14x/Scribus/scribus/smcolorcombo.cpp Thu Jun 18 20:48:59 2015
@@ -56,7 +56,7 @@
 	hasParent_ = false;
 	pItem_ = -1;
 	pText_ = s;
-	setCurrentComboItem(this, s);
+	setCurrentComboItem(this, (s == CommonStrings::None) ? CommonStrings::tr_NoneColor : s);
 	connect(this, SIGNAL(highlighted(int)), this, SLOT(currentChanged()));
 }
 
@@ -66,7 +66,7 @@
 	hasParent_ = true;
 	pItem_ = -1;
 	pText_ = s;
-	setCurrentComboItem(this, s);
+	setCurrentComboItem(this, (s == CommonStrings::None) ? CommonStrings::tr_NoneColor : s);
 	setFont(!isParentValue);
 	connect(this, SIGNAL(highlighted(int)), this, SLOT(currentChanged()));
 }




More information about the scribus-commit mailing list