Fix test crash.

(grafted from 8f904d2962fb3631f8ee3cdc6f8a9f5ed38f4d73)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-12-04 16:38:32 +02:00
parent 2d2a4a8c3e
commit f53343b01e

View File

@ -801,8 +801,7 @@ QString VTranslateVars::FormulaFromUser(const QString &formula, bool osSeparator
QString newFormula = formula;// Local copy for making changes
// Eval formula
QScopedPointer<qmu::QmuTokenParser> cal(new qmu::QmuTokenParser(formula, osSeparator, true,
qApp->TrVars()->GetTranslatedFunctions()));
QScopedPointer<qmu::QmuTokenParser> cal(new qmu::QmuTokenParser(formula, osSeparator, true, GetTranslatedFunctions()));
QMap<int, QString> tokens = cal->GetTokens();// Tokens (variables, measurements)
QMap<int, QString> numbers = cal->GetNumbers();// All numbers in expression for changing decimal separator
delete cal.take();