Fix exporting full piece.
This commit is contained in:
parent
b3e6365e92
commit
ebf678888e
|
@ -2243,7 +2243,7 @@ auto VLayoutPiece::GetMainPathItem() const -> QGraphicsPathItem *
|
|||
QPainterPath path;
|
||||
|
||||
// contour
|
||||
QVector<VLayoutPoint> const points = GetMappedContourPoints();
|
||||
QVector<VLayoutPoint> const points = GetMappedFullContourPoints();
|
||||
|
||||
path.moveTo(points.at(0));
|
||||
for (qint32 i = 1; i < points.count(); ++i)
|
||||
|
|
|
@ -2525,8 +2525,8 @@ auto VToolSeamAllowance::IsGrainlinePositionValid() const -> bool
|
|||
const VPiece detail = VAbstractTool::data.GetPiece(m_id);
|
||||
QVector<QPointF> contourPoints;
|
||||
detail.IsSeamAllowance() && not detail.IsSeamAllowanceBuiltIn()
|
||||
? CastTo(detail.SeamAllowancePoints(getData()), contourPoints)
|
||||
: CastTo(detail.MainPathPoints(getData()), contourPoints);
|
||||
? CastTo(detail.FullSeamAllowancePoints(getData()), contourPoints)
|
||||
: CastTo(detail.FullMainPathPoints(getData()), contourPoints);
|
||||
|
||||
return grainLine.IsPositionValid(contourPoints);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user