From 0e2c21240d04af79b5251f5414c5ce2e7e304aa6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Aug 2019 07:33:45 +0300 Subject: [PATCH] All formulas in recipe must be in C locale. --HG-- branch : develop --- src/libs/vformat/vpatternrecipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vformat/vpatternrecipe.cpp b/src/libs/vformat/vpatternrecipe.cpp index e8af3610a..ffc162307 100644 --- a/src/libs/vformat/vpatternrecipe.cpp +++ b/src/libs/vformat/vpatternrecipe.cpp @@ -1027,12 +1027,12 @@ inline void VPatternRecipe::Formula(QDomElement &step, const VFormula &formula, if (formula.error()) { throw VExceptionInvalidHistory(QObject::tr("Invalid formula '%1' for tool with id '%2'. %3.") - .arg(formula.GetFormula(FormulaType::FromSystem)) + .arg(formula.GetFormula(FormulaType::ToSystem)) .arg(formula.getToolId()) .arg(formula.Reason())); } - SetAttribute(step, formulaStr, formula.GetFormula(FormulaType::FromSystem)); + SetAttribute(step, formulaStr, formula.GetFormula(FormulaType::ToSystem)); SetAttribute(step, formulaValue, formula.getDoubleValue()); }