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

            Bug ID: 122926
        Issue Type: DEFECT
           Summary: [SVG] relative values in childs use wrong reference if
                    viewBox is missing
           Product: Draw
           Version: AOO 4.0.0
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 81226
  --> https://issues.apache.org/ooo/attachment.cgi?id=81226&action=edit
file to reproduce the error

In case the a svg-element does not have a viewBox attribute, but width and
height are given, relative values in child elements do not use the effective
size of the viewport but a DIN A4 fallback.
The error is in method getCurrentViewport() in svgsvgnode.cxx.

Idea: Consider width and height in getCurrentViewport(). Convert them to user
unit because method solve() in svgtools.cxx expects user unit in the range.

The attached file has an embedded svg. The source text of the svg is sited in
the file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to