incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 118784] New: svg problems with viewport, viewBox and preserveAspectRatio
Date Sat, 14 Jan 2012 23:23:36 GMT

             Bug #: 118784
        Issue Type: DEFECT
           Summary: svg problems with viewport, viewBox and
    Classification: Application
           Product: Drawing
           Version: current
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P5
         Component: open-import

Created attachment 77133
Draw document with linked svg graphic

The attachment contains a svg graphic and a Draw document produced by
LibreOffice 3.5, which links this graphic.
Open the Draw document with AOO. It stretches the graphic, but should not.

The Draw document defines a size of 'svg:width="15.006cm" svg:height="4.994cm"'
on the draw:frame element which contains the link to the graphic. The
svg-graphic itself defines 'width="150mm" height="50mm"'. So the initial
viewport should be negotiated to rounded 'width=15cm height=5cm'.
Then the attributes 'viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"' in
the graphic should generate a transformation matrix with the same factor for x
and y and should keep ratio of the child elements.
The red rectangle is defined with 'width="100" height="100"' and should be
rendered as square.

Handling of coordinate systems is described in

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

View raw message