Refactoring.

Merge "if" statement with the enclosing one.
This commit is contained in:
Roman Telezhynskyi 2024-05-02 10:36:26 +03:00
parent be1a8d15d0
commit e5295c0665

View File

@ -1616,9 +1616,8 @@ auto VLayoutPiece::ContourPath(bool togetherWithNotches, bool showLayoutAllowanc
}
path.addPath(passmaksPath);
if (!d->m_seamAllowanceMirrorLine.isNull() && IsShowFullPiece())
{
if (!VGObject::IsPointOnLineviaPDP(passmark.baseLine.p1(), d->m_seamAllowanceMirrorLine.p1(),
if (!d->m_seamAllowanceMirrorLine.isNull() && IsShowFullPiece() &&
!VGObject::IsPointOnLineviaPDP(passmark.baseLine.p1(), d->m_seamAllowanceMirrorLine.p1(),
d->m_seamAllowanceMirrorLine.p2()))
{
QPainterPath mirroredPassmaksPath;
@ -1632,7 +1631,6 @@ auto VLayoutPiece::ContourPath(bool togetherWithNotches, bool showLayoutAllowanc
}
}
}
}
path.setFillRule(Qt::WindingFill);
}