Fix broken $TDCREATE.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-06-23 17:49:15 +03:00
parent 146bf98f84
commit 4c2c4ae7a2

View File

@ -944,9 +944,9 @@ void DRW_Header::write(dxfWriter *writer, DRW::Version ver){
writer->writeInt16(70, varInt); writer->writeInt16(70, varInt);
} else } else
writer->writeInt16(70, 6); writer->writeInt16(70, 6);
if (getStr("$TDCREATE", &varStr)) {
writer->writeString(9, "$TDCREATE"); writer->writeString(9, "$TDCREATE");
if (getInt("$TDCREATE", &varInt)) { writer->writeString(40, varStr);
writer->writeInt16(40, varInt);
} }
if (ver > DRW::AC1009) { if (ver > DRW::AC1009) {
writer->writeString(9, "$UCSBASE"); writer->writeString(9, "$UCSBASE");