Bug in VFormula class. SetFormula was broken.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-10 13:51:51 +02:00
parent 8c0bdcc612
commit 7176bd0668

View file

@ -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();