Fix mirror line.

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

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) 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(); return;
if (not mirrorLine.isNull()) }
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);
{
e->lineType = dx_iface::QtPenStyleToString(Qt::DashDotLine);
detailBlock->ent.push_back(e);
}
} }
detailBlock->ent.push_back(e);
} }
} }