Fix export to DXF-AAMA. Don't "draw" a main path if seam allowance is built-in.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-14 16:47:11 +03:00
parent 188de5aa17
commit 6fa7be60e4

View File

@ -677,7 +677,7 @@ void VDxfEngine::ExportAAMAOutline(dx_ifaceBlock *detailBlock, const VLayoutPiec
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VDxfEngine::ExportAAMADraw(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail) void VDxfEngine::ExportAAMADraw(dx_ifaceBlock *detailBlock, const VLayoutPiece &detail)
{ {
if (not detail.IsHideMainPath()) if (not detail.IsHideMainPath() && not detail.IsSeamAllowanceBuiltIn())
{ {
QVector<QPointF> poly = detail.GetContourPoints(); QVector<QPointF> poly = detail.GetContourPoints();
if (DRW_Entity *e = AAMAPolygon(poly, QChar('8'), true)) if (DRW_Entity *e = AAMAPolygon(poly, QChar('8'), true))