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