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

            Bug ID: 122593
        Issue Type: DEFECT
           Summary: [SVG] drawing of inner svg element is disabled because
                    of missing width/height and missing viewBox but should
                    not
           Product: Draw
           Version: AOO400-dev
          Hardware: PC
               URL: http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAt
                    tribute
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 80912
  --> https://issues.apache.org/ooo/attachment.cgi?id=80912&action=edit
inner svg element with only x and y attribute

Open the attached document in browser and in AOO. Notice, that there is a red
square inside the blue rectangle, which is not drawn in AOO.

The reason is in SvgSvgNode::decomposeSvgNode. If no viewBox exists, the next
check is for width/height. If they do not exists, value 0.0 is used. This
results to 'false' in the check 'if(basegfx::fTools::more(fW, 0.0) &&
basegfx::fTools::more(fH, 0.0))', which disables rendering of the svg element.

The correct behavior is, to use the default values width="100%" and
height="100%", see linked specification.

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

Reply via email to