From f53343b01edaac01e849d59c1483567c2c493737 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 4 Dec 2017 16:38:32 +0200 Subject: [PATCH] Fix test crash. (grafted from 8f904d2962fb3631f8ee3cdc6f8a9f5ed38f4d73) --HG-- branch : develop --- src/libs/vpatterndb/vtranslatevars.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/vpatterndb/vtranslatevars.cpp b/src/libs/vpatterndb/vtranslatevars.cpp index 2956a05fc..de3a90860 100644 --- a/src/libs/vpatterndb/vtranslatevars.cpp +++ b/src/libs/vpatterndb/vtranslatevars.cpp @@ -801,8 +801,7 @@ QString VTranslateVars::FormulaFromUser(const QString &formula, bool osSeparator QString newFormula = formula;// Local copy for making changes // Eval formula - QScopedPointer cal(new qmu::QmuTokenParser(formula, osSeparator, true, - qApp->TrVars()->GetTranslatedFunctions())); + QScopedPointer cal(new qmu::QmuTokenParser(formula, osSeparator, true, GetTranslatedFunctions())); QMap tokens = cal->GetTokens();// Tokens (variables, measurements) QMap numbers = cal->GetNumbers();// All numbers in expression for changing decimal separator delete cal.take();