Refactoring.
Merge "if" statement with the enclosing one.
This commit is contained in:
parent
be1a8d15d0
commit
e5295c0665
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user