diff --git a/src/app/valentina/core/vformulaproperty.cpp b/src/app/valentina/core/vformulaproperty.cpp index 6f4fa61c8..c61659d18 100644 --- a/src/app/valentina/core/vformulaproperty.cpp +++ b/src/app/valentina/core/vformulaproperty.cpp @@ -47,7 +47,8 @@ VFormulaProperty::VFormulaProperty(const QString &name) tmpFormula->setUpdateBehaviour(true, false); tmpFormula->setOsSeparator(qApp->Settings()->GetOsSeparator()); - setValue(0); + // Cannot use virtual function setValue in constructor + SetFormula(QVariant(0).value()); } //---------------------------------------------------------------------------------------------------------------------