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);
|
path.addPath(passmaksPath);
|
||||||
|
|
||||||
if (!d->m_seamAllowanceMirrorLine.isNull() && IsShowFullPiece())
|
if (!d->m_seamAllowanceMirrorLine.isNull() && IsShowFullPiece() &&
|
||||||
{
|
!VGObject::IsPointOnLineviaPDP(passmark.baseLine.p1(), d->m_seamAllowanceMirrorLine.p1(),
|
||||||
if (!VGObject::IsPointOnLineviaPDP(passmark.baseLine.p1(), d->m_seamAllowanceMirrorLine.p1(),
|
|
||||||
d->m_seamAllowanceMirrorLine.p2()))
|
d->m_seamAllowanceMirrorLine.p2()))
|
||||||
{
|
{
|
||||||
QPainterPath mirroredPassmaksPath;
|
QPainterPath mirroredPassmaksPath;
|
||||||
|
@ -1632,7 +1631,6 @@ auto VLayoutPiece::ContourPath(bool togetherWithNotches, bool showLayoutAllowanc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
path.setFillRule(Qt::WindingFill);
|
path.setFillRule(Qt::WindingFill);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user