https://issues.apache.org/ooo/show_bug.cgi?id=125447

          Issue ID: 125447
        Issue Type: DEFECT
           Summary: [SVG] in path data digit 0 may be omitted
           Product: Draw
           Version: 4.1.0
          Hardware: PC
               URL: http://www.w3.org/TR/SVG/paths.html
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 83842
  --> https://issues.apache.org/ooo/attachment.cgi?id=83842&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to