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

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