You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/08/17 14:39:37 UTC

[Issue 125447] New: [SVG] in path data digit 0 may be omitted

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: issues@openoffice.apache.org
          Reporter: rb.henschel@t-online.de

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.

[Issue 125447] [SVG] in path data digit 0 may be omitted

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125447

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Armin Le Grand <Ar...@me.com> ---
Okay, done.

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

[Issue 125447] [SVG] in path data digit 0 may be omitted

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125447

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com
           Assignee|issues@openoffice.apache.or |Armin.Le.Grand@me.com
                   |g                           |

--- Comment #1 from Armin Le Grand <Ar...@me.com> ---
Grepping to keep in focus

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

[Issue 125447] [SVG] in path data digit 0 may be omitted

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125447

--- Comment #3 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1630069 into trunk:
i125447 corrected some string to number conversion tools to correct svg:d
imp...

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

[Issue 125447] [SVG] in path data digit 0 may be omitted

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125447

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ACCEPTED
   Target Milestone|---                         |4.2.0
     Ever confirmed|0                           |1

--- Comment #2 from Armin Le Grand <Ar...@me.com> ---
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...

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