From 4fa73c302cb47a9fbeb0e5bb41594e92b9079fc7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 17 Apr 2019 16:08:48 +0300 Subject: [PATCH] Local seam allowance can be 0. ref #965. --HG-- branch : develop --- src/libs/vpatterndb/vpiecenode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/vpatterndb/vpiecenode.cpp b/src/libs/vpatterndb/vpiecenode.cpp index 992d0553f..eaa47ac25 100644 --- a/src/libs/vpatterndb/vpiecenode.cpp +++ b/src/libs/vpatterndb/vpiecenode.cpp @@ -129,6 +129,7 @@ qreal VPieceNode::GetSABefore(const VContainer *data) const } VFormula formula(d->m_formulaWidthBefore, data); + formula.setCheckZero(false); formula.Eval(); if (formula.error()) @@ -158,6 +159,7 @@ qreal VPieceNode::GetSABefore(const VContainer *data, Unit unit) const } VFormula formula(d->m_formulaWidthBefore, data); + formula.setCheckZero(false); formula.Eval(); if (formula.error()) @@ -208,6 +210,7 @@ qreal VPieceNode::GetSAAfter(const VContainer *data) const } VFormula formula(d->m_formulaWidthAfter, data); + formula.setCheckZero(false); formula.Eval(); if (formula.error()) @@ -238,6 +241,7 @@ qreal VPieceNode::GetSAAfter(const VContainer *data, Unit unit) const } VFormula formula(d->m_formulaWidthAfter, data); + formula.setCheckZero(false); formula.Eval(); if (formula.error())