For AAMA layer 1 must be default.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-07-19 10:34:24 +03:00
parent f20549d310
commit 9ae393a462
3 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -123,6 +123,7 @@ public:
void AddQtLTypes();
void AddDefLayers();
void AddAAMALayers();
void AddAAMAHeaderData();
private:
Q_DISABLE_COPY(dx_iface)

View File

@ -613,6 +613,7 @@ bool VDxfEngine::ExportToAAMA(const QVector<VLayoutPiece> &details)
}
input = QSharedPointer<dx_iface>(new dx_iface(fileName.toStdString(), m_version, varMeasurement, varInsunits));
input->AddAAMAHeaderData();
if (m_version > DRW::AC1009)
{
input->AddDefLayers();