Fix mirror line.

This commit is contained in:
Roman Telezhynskyi 2024-02-29 16:42:07 +02:00
parent ced93eb58a
commit 5dfe06804f

View File

@ -1720,20 +1720,25 @@ 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 (not mirrorLine.isNull())
if (mirrorLine.isNull())
{
if (DRW_Entity *e = AAMALine(mirrorLine, *layer6))
return;
}
const bool isShowFullPiece = detail.IsShowFullPiece();
const auto layer = isShowFullPiece ? layer8 : layer6;
if (DRW_Entity *e = AAMALine(mirrorLine, *layer))
{
if (isShowFullPiece)
{
e->lineType = dx_iface::QtPenStyleToString(Qt::DashDotLine);
}
detailBlock->ent.push_back(e);
}
}
}
}
//---------------------------------------------------------------------------------------------------------------------
void VDxfEngine::ExportASTMDrawFoldLine(const QSharedPointer<dx_ifaceBlock> &detailBlock, const VLayoutPiece &detail)