Fix mirror line.

develop
Roman Telezhynskyi 2024-02-29 16:42:07 +02:00
parent ced93eb58a
commit 5dfe06804f
1 changed files with 13 additions and 8 deletions

View File

@ -1721,17 +1721,22 @@ void VDxfEngine::ExportASTMNotches(const QSharedPointer<dx_ifaceBlock> &detailBl
//---------------------------------------------------------------------------------------------------------------------
void VDxfEngine::ExportASTMMirrorLine(const QSharedPointer<dx_ifaceBlock> &detailBlock, const VLayoutPiece &detail)
{
if (detail.IsShowFullPiece())
const QLineF mirrorLine = detail.GetMappedSeamAllowanceMirrorLine();
if (mirrorLine.isNull())
{
const QLineF mirrorLine = detail.GetMappedSeamAllowanceMirrorLine();
if (not mirrorLine.isNull())
return;
}
const bool isShowFullPiece = detail.IsShowFullPiece();
const auto layer = isShowFullPiece ? layer8 : layer6;
if (DRW_Entity *e = AAMALine(mirrorLine, *layer))
{
if (isShowFullPiece)
{
if (DRW_Entity *e = AAMALine(mirrorLine, *layer6))
{
e->lineType = dx_iface::QtPenStyleToString(Qt::DashDotLine);
detailBlock->ent.push_back(e);
}
e->lineType = dx_iface::QtPenStyleToString(Qt::DashDotLine);
}
detailBlock->ent.push_back(e);
}
}