Refactoring. Use temporary variable instead of copy.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-14 16:47:55 +03:00
parent 6fa7be60e4
commit 788f27889f

View File

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