Instead of "-1" use local variable "CurrentSeamAllowance" if value is default.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-01-25 11:40:10 +02:00
parent 49167c0c3c
commit e206ef3d5d

View File

@ -45,8 +45,8 @@ public:
m_reverse(false),
m_saBefore(-1),
m_saAfter(-1),
m_formulaWidthBefore(""),
m_formulaWidthAfter(""),
m_formulaWidthBefore(currentSeamAllowance),
m_formulaWidthAfter(currentSeamAllowance),
m_angleType(PieceNodeAngle::ByLength)
{}
@ -56,8 +56,8 @@ public:
m_reverse(reverse),
m_saBefore(-1),
m_saAfter(-1),
m_formulaWidthBefore("-1"),
m_formulaWidthAfter("-1"),
m_formulaWidthBefore(currentSeamAllowance),
m_formulaWidthAfter(currentSeamAllowance),
m_angleType(PieceNodeAngle::ByLength)
{
if (m_typeTool == Tool::NodePoint)