Fix test.
Ensure that we also remove a thousands separator in test. (grafted from 023f2d495cf49a2cf8dc58b3154aed42e57882a9) --HG-- branch : develop
This commit is contained in:
parent
3499b04c56
commit
e288c3a7ee
|
@ -145,7 +145,11 @@ void TST_VTranslateVars::PrepareValFromUser(double d, const QLocale &locale)
|
|||
void TST_VTranslateVars::PrepareValToUser(double d, const QLocale &locale)
|
||||
{
|
||||
const QString formulaFromSystem = QLocale::c().toString(d);
|
||||
const QString formulaToUser = locale.toString(d);
|
||||
QString formulaToUser = locale.toString(d);
|
||||
if (locale.groupSeparator().isSpace())
|
||||
{
|
||||
formulaToUser.replace(locale.groupSeparator(), "");
|
||||
}
|
||||
|
||||
PrepareVal(formulaFromSystem, formulaToUser, locale);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user