diff --git a/src/app/core/vapplication.cpp b/src/app/core/vapplication.cpp index 6d47aa27f..c23c427c4 100644 --- a/src/app/core/vapplication.cpp +++ b/src/app/core/vapplication.cpp @@ -1771,27 +1771,25 @@ QString VApplication::FormulaFromUser(const QString &formula) QList nValues = numbers.values(); for (int i = 0; i < nKeys.size(); ++i) { + loc = QLocale::system(); bool ok = false; - qreal d = loc.toDouble(nValues.at(i), &ok); + const qreal d = loc.toDouble(nValues.at(i), &ok); if (ok == false) { qDebug()<<"Can't convert to double token"< nValues = numbers.values(); for (int i = 0; i < nKeys.size(); ++i) { - QLocale loc = QLocale(QLocale::C); + loc = QLocale(QLocale::C); bool ok = false; - qreal d = loc.toDouble(nValues.at(i), &ok); + const qreal d = loc.toDouble(nValues.at(i), &ok); if (ok == false) { qDebug()<<"Can't convert to double token"<