https://bugs.documentfoundation.org/show_bug.cgi?id=105810

            Bug ID: 105810
           Summary: svg import incorrect size
           Product: LibreOffice
           Version: 5.2.5.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Imported svg file into libreoffice draw is 25% bigger then is expected.

I prepared example. Attached file contains svg with two lines:
horizontal line has length 20cm
vertical line has length 30cm

I want import the file into libreoffice draw in scale 1:5
It means
horizontal line should have length 20/5 = 4cm
vertical line should have length 30/5 = 6cm

There is svg source file

<svg width="4.8cm" height="6.8cm" xmlns="http://www.w3.org/2000/svg";
version="1.1" viewBox="-2 -2 24 34">
    <g id="base" stroke="black" stroke-width="0.1" stroke-linejoin="round"
stroke-linecap="round" fill="none">
        <line x1="0" y1="0" x2="20" y2="0"/>
        <line x1="20" y1="0" x2="20" y2="30"/>
    </g>
</svg>


Steps to Reproduce:
1. open svg file attachment in libreoffice
2. check lenght of horizontal and vertical line.
3. try open the file in inkscape and check lenght of lines


Actual Results:  
horizontal line has length 5cm
vertical line has length 7.5cm

Expected Results:
horizontal line has length 4cm
vertical line has length 6cm


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101
Firefox/51.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to