Fix test.

Ensure that we also remove a thousands separator in test.
(grafted from 023f2d495cf49a2cf8dc58b3154aed42e57882a9)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-09-06 13:22:57 +03:00
parent 3499b04c56
commit e288c3a7ee

View File

@ -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);
}