From 3c48935b5c34cd6ec126726a5c98f46239fa9a99 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 21 Jun 2017 16:32:50 +0300 Subject: [PATCH] Handle value $TDCREATE. --HG-- branch : feature --- src/libs/vdxf/libdxfrw/drw_header.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/vdxf/libdxfrw/drw_header.cpp b/src/libs/vdxf/libdxfrw/drw_header.cpp index cb4c2fc78..bb1653473 100644 --- a/src/libs/vdxf/libdxfrw/drw_header.cpp +++ b/src/libs/vdxf/libdxfrw/drw_header.cpp @@ -944,6 +944,10 @@ 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 (ver > DRW::AC1009) { writer->writeString(9, "$UCSBASE"); if (getStr("$UCSBASE", &varStr))