Fix opening files in version R10.
AutoCAD complains about missed groups. --HG-- branch : feature
This commit is contained in:
parent
54eadfdb3c
commit
74035ddeeb
|
@ -422,15 +422,15 @@ bool dxfRW::writeDimstyle(DRW_Dimstyle *ent){
|
||||||
} else
|
} else
|
||||||
writer->writeUtf8Caps(2, ent->name);
|
writer->writeUtf8Caps(2, ent->name);
|
||||||
writer->writeInt16(70, ent->flags);
|
writer->writeInt16(70, ent->flags);
|
||||||
if ( version == DRW::AC1009 || !(ent->dimpost.empty()) )
|
if ( version <= DRW::AC1009 || !(ent->dimpost.empty()) )
|
||||||
writer->writeUtf8String(3, ent->dimpost);
|
writer->writeUtf8String(3, ent->dimpost);
|
||||||
if ( version == DRW::AC1009 || !(ent->dimapost.empty()) )
|
if ( version <= DRW::AC1009 || !(ent->dimapost.empty()) )
|
||||||
writer->writeUtf8String(4, ent->dimapost);
|
writer->writeUtf8String(4, ent->dimapost);
|
||||||
if ( version == DRW::AC1009 || !(ent->dimblk.empty()) )
|
if ( version <= DRW::AC1009 || !(ent->dimblk.empty()) )
|
||||||
writer->writeUtf8String(5, ent->dimblk);
|
writer->writeUtf8String(5, ent->dimblk);
|
||||||
if ( version == DRW::AC1009 || !(ent->dimblk1.empty()) )
|
if ( version <= DRW::AC1009 || !(ent->dimblk1.empty()) )
|
||||||
writer->writeUtf8String(6, ent->dimblk1);
|
writer->writeUtf8String(6, ent->dimblk1);
|
||||||
if ( version == DRW::AC1009 || !(ent->dimblk2.empty()) )
|
if ( version <= DRW::AC1009 || !(ent->dimblk2.empty()) )
|
||||||
writer->writeUtf8String(7, ent->dimblk2);
|
writer->writeUtf8String(7, ent->dimblk2);
|
||||||
writer->writeDouble(40, ent->dimscale);
|
writer->writeDouble(40, ent->dimscale);
|
||||||
writer->writeDouble(41, ent->dimasz);
|
writer->writeDouble(41, ent->dimasz);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user