r19285 by jghali - fix incorrect processing of cicero unit in spinboxes

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 26 16:46:10 UTC 2014


Author: jghali
Date: Thu Jun 26 16:46:10 2014
New Revision: 19285

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19285
Log:
fix incorrect processing of cicero unit in spinboxes

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

Modified: branches/Version14x/Scribus/scribus/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19285&path=/branches/Version14x/Scribus/scribus/scrspinbox.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scrspinbox.cpp (original)
+++ branches/Version14x/Scribus/scribus/scrspinbox.cpp Thu Jun 26 16:46:10 2014
@@ -195,7 +195,7 @@
 		ts.replace(CommonStrings::trStrIN, CommonStrings::strIN);
 	if (CommonStrings::trStrCM.localeAwareCompare(CommonStrings::strCM)!=0)
 		ts.replace(CommonStrings::trStrCM, CommonStrings::strCM);
-	if (CommonStrings::trStrC.localeAwareCompare(CommonStrings::trStrC)!=0)
+	if (CommonStrings::trStrC.localeAwareCompare(CommonStrings::strC)!=0)
 		ts.replace(CommonStrings::trStrC, CommonStrings::strC);
 	//Replace in our typed text all of the units strings with *unitstring
 	QRegExp rx("\\b(\\d+)\\s*("+CommonStrings::strPT+"|"+CommonStrings::strMM+"|"+CommonStrings::strC+"|"+CommonStrings::strCM+"|"+CommonStrings::strIN+")\\b");




More information about the scribus-commit mailing list