I'm using this fork to contribute features and fixes to the upstream project. In order to create good pull requests, I'm rebasing my feature branches, squashing and reordering commits, etc. If you fork this repository be aware that my development branches may rewrite history without prior notice.
The handling of OBGraphicsStroke and OBGraphicsStrokesGroup seems to be inconsistent somewhere. I can demonstrate that with a simple document with an arc drawn by the compass tool.
After drawing the arc and removing the compass tool, the SVG looks as follows:
The first polygon is the arc, the two others the center cross. The center cross is duplicated in two <line> elements. I would have expected that the <g> contains a polygon and two lines. The external line elements are not required and in fact they have no correlation to the group in any way.
Close and reopen the document
Then close and reopen the document. Make a change and undo it again, to make the document dirty. Then save it again. The result:
Two additional <g> elements are created, each representing the outline of one line of the center cross. I assume these elements are created when parsing the <line> elements, but I have not investigated this further.
Repeat this step
When repeating this step, even more <g> are created:
It seems that every time I open the document, the <line> elements are duplicated into another <g> element.
Impact
The additional elements are not visible, because the are exactly on top of each other. But when I remove the arc, then the cross remains and I have to delete each line individually or do a rubber band selection to remove them all at once.
The handling of
OBGraphicsStroke
andOBGraphicsStrokesGroup
seems to be inconsistent somewhere. I can demonstrate that with a simple document with an arc drawn by the compass tool.After drawing the arc and removing the compass tool, the SVG looks as follows:
The first polygon is the arc, the two others the center cross. The center cross is duplicated in two
<line>
elements. I would have expected that the<g>
contains a polygon and two lines. The external line elements are not required and in fact they have no correlation to the group in any way.Close and reopen the document
Then close and reopen the document. Make a change and undo it again, to make the document dirty. Then save it again. The result:
Two additional
<g>
elements are created, each representing the outline of one line of the center cross. I assume these elements are created when parsing the<line>
elements, but I have not investigated this further.Repeat this step
When repeating this step, even more
<g>
are created:It seems that every time I open the document, the
<line>
elements are duplicated into another<g>
element.Impact
The additional elements are not visible, because the are exactly on top of each other. But when I remove the arc, then the cross remains and I have to delete each line individually or do a rubber band selection to remove them all at once.