Improve VPiece::IsSeamAllowanceValid. If called for piece without seam

allowance return true.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-01 17:20:21 +02:00
parent 2c19640089
commit 33d83cedea

View File

@ -613,7 +613,14 @@ QPainterPath VPiece::PlaceLabelPath(const VContainer *data) const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
bool VPiece::IsSeamAllowanceValid(const VContainer *data) const bool VPiece::IsSeamAllowanceValid(const VContainer *data) const
{ {
return VAbstractPiece::IsAllowanceValid(UniteMainPathPoints(data), SeamAllowancePoints(data)); if (IsSeamAllowance() && not IsSeamAllowanceBuiltIn())
{
return VAbstractPiece::IsAllowanceValid(UniteMainPathPoints(data), SeamAllowancePoints(data));
}
else
{
return true;
}
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------