From 9ae393a46255a546c3e2154338a696063c20c64c Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 19 Jul 2017 10:34:24 +0300 Subject: [PATCH] For AAMA layer 1 must be default. --HG-- branch : feature --- src/libs/vdxf/dxiface.cpp | 5 +++++ src/libs/vdxf/dxiface.h | 1 + src/libs/vdxf/vdxfengine.cpp | 1 + 3 files changed, 7 insertions(+) diff --git a/src/libs/vdxf/dxiface.cpp b/src/libs/vdxf/dxiface.cpp index dddb4dc0e..50cb275d9 100644 --- a/src/libs/vdxf/dxiface.cpp +++ b/src/libs/vdxf/dxiface.cpp @@ -277,6 +277,11 @@ void dx_iface::AddAAMALayers() // cData.layers.push_back(layer); } +void dx_iface::AddAAMAHeaderData() +{ + cData.headerC.addStr("$CLAYER", "1", 8); +} + void dx_iface::AddDefLayers() { DRW_Layer defLayer; diff --git a/src/libs/vdxf/dxiface.h b/src/libs/vdxf/dxiface.h index eb449746a..bb58a8f03 100644 --- a/src/libs/vdxf/dxiface.h +++ b/src/libs/vdxf/dxiface.h @@ -123,6 +123,7 @@ public: void AddQtLTypes(); void AddDefLayers(); void AddAAMALayers(); + void AddAAMAHeaderData(); private: Q_DISABLE_COPY(dx_iface) diff --git a/src/libs/vdxf/vdxfengine.cpp b/src/libs/vdxf/vdxfengine.cpp index 25886f471..aae30ac65 100644 --- a/src/libs/vdxf/vdxfengine.cpp +++ b/src/libs/vdxf/vdxfengine.cpp @@ -613,6 +613,7 @@ bool VDxfEngine::ExportToAAMA(const QVector &details) } input = QSharedPointer(new dx_iface(fileName.toStdString(), m_version, varMeasurement, varInsunits)); + input->AddAAMAHeaderData(); if (m_version > DRW::AC1009) { input->AddDefLayers();