-
-
Notifications
You must be signed in to change notification settings - Fork 286
Description
Hello,
Ent_LWPOLYLINE* ent_lwpolyline = object->tio.ent->tio.LWPOLYLINE;
have a property flag, which must be about if the current lwpolyline entity have to be with merged ends (its start and end points to be connected).
LibreDWG does not take the correct flag value, therefore using CLOSED flag there is a mismatch from the original CAD graphic and the LibreDWG created one.
Is this an addressed issue with the old versions of LibreDWG? Perhaps has this been resolved already in the latest version?
Please give me feedback on this.
__
Later amendment:
In the specifications for both DWG and DXF (written in LibreDWG's .spec files) it reads like so:
DWG -> 512 bit
DXF -> 1 bit
Therefore the flag must be between 1 and >= 512 (in decimal).
if (o->flag & 1 && o->flag & 512)
o->flag = 512;
If not checked ( o->flag & 512 ) then how could we know if the flag is actually existing for the DWG file?
Previously: Here the flag may be > 1, then the flag set for the DWG file will be bigger than 512.
Thank you,
Daniel