r20223 by jghali - workaround a case of wrong value interpretation in scrspinbox in case of broken Windows Regional Settings

scribus-commit scribus-commit at lists.scribus.net
Mon Jun 29 22:47:52 UTC 2015


Author: jghali
Date: Mon Jun 29 22:47:51 2015
New Revision: 20223

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20223
Log:
workaround a case of wrong value interpretation in scrspinbox in case of broken Windows Regional Settings

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

Modified: branches/Version14x/Scribus/scribus/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20223&path=/branches/Version14x/Scribus/scribus/scrspinbox.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scrspinbox.cpp (original)
+++ branches/Version14x/Scribus/scribus/scrspinbox.cpp Mon Jun 29 22:47:51 2015
@@ -150,9 +150,11 @@
 	QString crtSepGroup(QString::fromLocal8Bit( lc->thousands_sep ));
 	// this could be hardcoded: "."
 	QString cSepDecimal(QLocale::c().decimalPoint());
-	ts.remove(sysSepGroup);
+	if (sysSepGroup != sysSepDecimal)
+		ts.remove(sysSepGroup);
 	ts.replace(sysSepDecimal, crtSepDecimal);
-	ts.remove(crtSepGroup);
+	if (crtSepGroup != crtSepDecimal)
+		ts.remove(crtSepGroup);
 	ts.replace(crtSepDecimal, cSepDecimal);
 	
 	ts.replace("%", "");




More information about the scribus-commit mailing list