diff --git a/thirdparty/dxflib_qcad/dl_dxf.cpp b/thirdparty/dxflib_qcad/dl_dxf.cpp index 4318804b96..59fc1e293f 100644 --- a/thirdparty/dxflib_qcad/dl_dxf.cpp +++ b/thirdparty/dxflib_qcad/dl_dxf.cpp @@ -4926,7 +4926,7 @@ void DL_Dxf::writeUcs( DL_WriterA& dw ) */ void DL_Dxf::writeDimStyle( DL_WriterA& dw, double dimasz, double dimexe, double dimexo, - double dimgap, double dimtxt ) + double dimgap, double dimtxt, int dimtad, bool dimtih ) { dw.dxfString( 0, "TABLE" ); dw.dxfString( 2, "DIMSTYLE" ); @@ -4994,7 +4994,8 @@ void DL_Dxf::writeDimStyle( DL_WriterA& dw, dw.dxfInt( 72, 0 ); } - dw.dxfInt( 73, 0 ); + // DIMTIH: + dw.dxfInt( 73, (int) dimtih ); dw.dxfInt( 74, 0 ); if( version==DL_VERSION_R12 ) @@ -5003,7 +5004,8 @@ void DL_Dxf::writeDimStyle( DL_WriterA& dw, dw.dxfInt( 76, 0 ); } - dw.dxfInt( 77, 1 ); + // DIMTAD: + dw.dxfInt( 77, dimtad ); dw.dxfInt( 78, 8 ); dw.dxfReal( 140, dimtxt ); dw.dxfReal( 141, 2.5 ); diff --git a/thirdparty/dxflib_qcad/dl_dxf.h b/thirdparty/dxflib_qcad/dl_dxf.h index 2954cba7a3..4575d0dec3 100644 --- a/thirdparty/dxflib_qcad/dl_dxf.h +++ b/thirdparty/dxflib_qcad/dl_dxf.h @@ -351,7 +351,8 @@ public: void writeUcs( DL_WriterA& dw ); void writeDimStyle( DL_WriterA& dw, double dimasz, double dimexe, double dimexo, - double dimgap, double dimtxt ); + double dimgap, double dimtxt, + int dimtad = 1, bool dimtih = false ); void writeBlockRecord( DL_WriterA& dw ); void writeBlockRecord( DL_WriterA& dw, const std::string& name ); void writeObjects( DL_WriterA& dw, const std::string& appDictionaryName = "" );