Fix rendering of draw:g with a path with z commands & sync marker paths with LO

Review Request #121214 - Created Nov. 23, 2014 and submitted

Friedrich W. H. Kossebau
boemann, leinir, liu

Some of my files with native ODF graphics inside are badly rendered by Calligra programs, e.g. the logo of KO:

Investigating onto proper SVG paths and comparing with LO and Inkscape I found that 501f4d55d0828b7a9ca1c62500454358feb4a0b1 was the culprit here, as the problem mentioned in was actually due to a bug in LO, which has been meanwhiled fixed and also was accompagnied by an update of the paths of the installed markers from LO, so that fix was only copying a bug, breaking otherwise fine code.

So this diff consists of three commits:
revert 501f4d55d0828b7a9ca1c62500454358feb4a0b1
sync preinstalled marker with those of current LibreOffice
* catch old marker paths on loading

For me this PR fixes the rendering of my files, like the one linked above, and also of files created with a recent LO where arrows have been added with unfilled markers (e.g. diamond) at their end. Files created with Calligra programs before that also use arrows with markers still load fine.

I would like to backport to 2.8 in time for 2.8.7, so please give it a quick review.

Friedrich W. H. Kossebau
Camilla Boemann
Friedrich W. H. Kossebau
Review request changed

Status: Closed (submitted)