diff --git a/src/app/valentina/core/vformulaproperty.cpp b/src/app/valentina/core/vformulaproperty.cpp index db64e85b5..fbaf85cc0 100644 --- a/src/app/valentina/core/vformulaproperty.cpp +++ b/src/app/valentina/core/vformulaproperty.cpp @@ -198,10 +198,12 @@ void VFormulaProperty::SetFormula(const VFormula &formula) } } +//--------------------------------------------------------------------------------------------------------------------- void VFormulaProperty::ValueChildChanged(const QVariant &value, int typeForParent) { Q_UNUSED(typeForParent) VFormula newFormula = GetFormula(); newFormula.SetFormula(value.toString(), FormulaType::FromUser); + newFormula.Eval(); SetFormula(newFormula); } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollinepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollinepoint.cpp index b905f29ce..d7b2f2b92 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollinepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollinepoint.cpp @@ -217,7 +217,7 @@ void VToolLinePoint::SetLineColor(const QString &value) VFormula VToolLinePoint::GetFormulaLength() const { VFormula fLength(formulaLength, this->getData()); - fLength.setCheckZero(true); + fLength.setCheckZero(false); fLength.setToolId(m_id); fLength.setPostfix(UnitsToStr(qApp->patternUnit())); fLength.Eval();