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);
} else
writer->writeInt16(70, 6);
writer->writeString(9, "$TDCREATE");
if (getInt("$TDCREATE", &varInt)) {
writer->writeInt16(40, varInt);
if (getStr("$TDCREATE", &varStr)) {
writer->writeString(9, "$TDCREATE");
writer->writeString(40, varStr);
}
if (ver > DRW::AC1009) {
writer->writeString(9, "$UCSBASE");