Fixed broken formula when for system locale thousand separator is space.
--HG-- branch : feature
This commit is contained in:
parent
f2ee4cfd35
commit
9219b05a5b
|
@ -889,7 +889,8 @@ QString VTranslateVars::FormulaToUser(const QString &formula) const
|
|||
}
|
||||
|
||||
loc = QLocale::system();// To user locale
|
||||
const QString dStr = loc.toString(d);// Number string in user locale
|
||||
QString dStr = loc.toString(d);// Number string in user locale
|
||||
dStr.replace(" ", ""); // Remove thousand separator
|
||||
newFormula.replace(nKeys.at(i), nValues.at(i).length(), dStr);
|
||||
const int bias = nValues.at(i).length() - dStr.length();
|
||||
if (bias != 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user