Apache OpenOffice (AOO) Bugzilla – Issue 125447
[SVG] in path data digit 0 may be omitted
Last modified: 2017-05-20 10:35:38 UTC
Created attachment 83842 [details] floating point .8 and 5. in various combinations The corresponding issue in LibreOffice is https://bugs.freedesktop.org/show_bug.cgi?id=48068 The error has been discovered by test case "path-data-18-f.svg" from the W3C-SVG test suite. Read section "8.3.9 The grammar for path data". The BNF has floating-point-constant: fractional-constant exponent? | digit-sequence exponent fractional-constant: digit-sequence? "." digit-sequence | digit-sequence "." That means, that in a fractional-constant (A) a leading zero can be omitted if a digit-sequence follows the dot. (B) a trailing zero can be omitted if a digit-sequence is before the dot. The attached example should show a black line same as the green line but only shifted down a little bit. In AOO the case A fails. The affects the third, forth, fifth and sixth bar in the example. In Seamonkey the case B fails (first and second bar), Batik shows all cases correctly.
Grepping to keep in focus
Had to adapt some of the string conversion tools in basegfx to handle the conversions of those numbers in the test doc correctly. Checked and investigated other usages, looks okay. Doing some more checks...
"alg" committed SVN revision 1630069 into trunk: i125447 corrected some string to number conversion tools to correct svg:d imp...
Okay, done.