GCC warning.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-06-20 13:31:06 +03:00
parent 279e1cda84
commit c0b0053859

View File

@ -472,12 +472,14 @@ void DRW_Header::write(dxfWriter *writer, DRW::Version ver){
if (getInt("$DIMSOXD", &varInt))
writer->writeInt16(70, varInt);
else
{
writer->writeInt16(70, 0);
writer->writeString(9, "$DIMSAH");
if (getInt("$DIMSAH", &varInt))
writer->writeInt16(70, varInt);
else
writer->writeInt16(70, 0);
}
writer->writeString(9, "$DIMBLK1");
if (getStr("$DIMBLK1", &varStr))
if (ver == DRW::AC1009)