Fix regression in DXF-AAMA export.

Some paths were not properly mapped.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2020-01-11 11:48:02 +02:00
parent f13ec746a9
commit 63c4725e81

View File

@ -664,11 +664,11 @@ void VDxfEngine::ExportAAMAOutline(dx_ifaceBlock *detailBlock, const VLayoutPiec
QVector<QPointF> outline; QVector<QPointF> outline;
if (detail.IsSeamAllowance() && not detail.IsSeamAllowanceBuiltIn()) if (detail.IsSeamAllowance() && not detail.IsSeamAllowanceBuiltIn())
{ {
outline = detail.GetSeamAllowancePoints(); outline = detail.GetMappedSeamAllowancePoints();
} }
else else
{ {
outline = detail.GetContourPoints(); outline = detail.GetMappedContourPoints();
} }
DRW_Entity *e = AAMAPolygon(outline, QChar('1'), true); DRW_Entity *e = AAMAPolygon(outline, QChar('1'), true);
@ -683,7 +683,7 @@ void VDxfEngine::ExportAAMADraw(dx_ifaceBlock *detailBlock, const VLayoutPiece &
{ {
if (not detail.IsHideMainPath() && not detail.IsSeamAllowanceBuiltIn()) if (not detail.IsHideMainPath() && not detail.IsSeamAllowanceBuiltIn())
{ {
if (DRW_Entity *e = AAMAPolygon(detail.GetContourPoints(), QChar('8'), true)) if (DRW_Entity *e = AAMAPolygon(detail.GetMappedContourPoints(), QChar('8'), true))
{ {
detailBlock->ent.push_back(e); detailBlock->ent.push_back(e);
} }