r20222 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:40:16 UTC 2015


Author: jghali
Date: Mon Jun 29 22:40:15 2015
New Revision: 20222

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

Modified:
    trunk/Scribus/scribus/ui/scrspinbox.cpp

Modified: trunk/Scribus/scribus/ui/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20222&path=/trunk/Scribus/scribus/ui/scrspinbox.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scrspinbox.cpp (original)
+++ trunk/Scribus/scribus/ui/scrspinbox.cpp Mon Jun 29 22:40:15 2015
@@ -168,9 +168,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(CommonStrings::trStrPX, "");




More information about the scribus-commit mailing list