diff --git a/src/libs/vdxf/vdxfengine.cpp b/src/libs/vdxf/vdxfengine.cpp index 1eeb63764..b6087f6c8 100644 --- a/src/libs/vdxf/vdxfengine.cpp +++ b/src/libs/vdxf/vdxfengine.cpp @@ -1728,9 +1728,9 @@ void VDxfEngine::ExportASTMMirrorLine(const QSharedPointer &detai } const bool isShowFullPiece = detail.IsShowFullPiece(); - const auto layer = isShowFullPiece ? layer8 : layer6; + const auto layer = isShowFullPiece ? *layer8 : *layer6; - if (DRW_Entity *e = AAMALine(mirrorLine, *layer)) + if (DRW_Entity *e = AAMALine(mirrorLine, layer)) { if (isShowFullPiece) {