All formulas in recipe must be in C locale.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-08-20 07:33:45 +03:00
parent b34b25be76
commit 0e2c21240d

View File

@ -1027,12 +1027,12 @@ inline void VPatternRecipe::Formula(QDomElement &step, const VFormula &formula,
if (formula.error()) if (formula.error())
{ {
throw VExceptionInvalidHistory(QObject::tr("Invalid formula '%1' for tool with id '%2'. %3.") 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.getToolId())
.arg(formula.Reason())); .arg(formula.Reason()));
} }
SetAttribute(step, formulaStr, formula.GetFormula(FormulaType::FromSystem)); SetAttribute(step, formulaStr, formula.GetFormula(FormulaType::ToSystem));
SetAttribute(step, formulaValue, formula.getDoubleValue()); SetAttribute(step, formulaValue, formula.getDoubleValue());
} }