From 7176bd0668f9fb0f7d3d81b1a757969639329fdf Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 10 Feb 2015 13:51:51 +0200 Subject: [PATCH] Bug in VFormula class. SetFormula was broken. --HG-- branch : feature --- src/app/container/vformula.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/container/vformula.cpp b/src/app/container/vformula.cpp index fa345e4a5..247ed1ab7 100644 --- a/src/app/container/vformula.cpp +++ b/src/app/container/vformula.cpp @@ -113,11 +113,11 @@ void VFormula::SetFormula(const QString &value, FormulaType type) { if (type == FormulaType::ToUser) { - formula = value; + formula = qApp->FormulaToUser(value); } else { - formula = qApp->FormulaToUser(value); + formula = value; } formula.replace("\n", " ");// Replace line return with spaces for calc if exist Eval();