Bug 105810 - svg import incorrect size
Summary: svg import incorrect size
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: SVG-Open
  Show dependency treegraph
 
Reported: 2017-02-06 21:37 UTC by Ondrej Fafejta
Modified: 2018-06-20 17:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example SVG (325 bytes, image/svg+xml)
2017-02-06 21:40 UTC, Ondrej Fafejta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Fafejta 2017-02-06 21:37:35 UTC
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
Comment 1 Ondrej Fafejta 2017-02-06 21:40:06 UTC
Created attachment 130966 [details]
Example SVG
Comment 2 Xisco Faulí 2017-06-08 08:38:20 UTC
You can't confirm your own bugs. Moving back to UNCONFIRMED
Comment 3 Buovjaga 2017-06-11 13:52:45 UTC
Reproduced (opening with Draw, not inserting).
3.6.7.2 gives correct result.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.5.0.0.alpha0+
Build ID: 2802dca10eef67554a81cb2347d5f648fa6fcd63
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 10th 2017

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 4 Terrence Enger 2017-06-13 15:25:17 UTC
Working on debian-stretch in the bibisect-43max repository, I see that
the bug started in the range ...

          commit    date        s-h
          --------  ----------  --------
    good  dadf6508  2015-11-27  bc910480
    bad   6ca99eef  2015-11-28  e963e478

I am removing keyword bibisectRequest and adding bibisected.
Comment 6 Xisco Faulí 2018-06-20 16:35:50 UTC
No longer reproducible in

Version: 6.2.0.0.alpha0+
Build ID: 370a30b6acc5b99b6046440f6b5f4f3f5f9f4b1a
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded

Closing as RESOLVED WORKSFORME