Bug 115777 - LIBREOFFICE DRAW SVG export rearranges vectors example attached
Summary: LIBREOFFICE DRAW SVG export rearranges vectors example attached
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-16 10:26 UTC by Neil Gulati
Modified: 2018-05-12 05:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
LODraw ODG file that demonstrates the issue (9.75 KB, application/vnd.oasis.opendocument.graphics)
2018-02-16 10:29 UTC, Neil Gulati
Details
Screenshot of how the broken export SVG looks. (29.78 KB, image/png)
2018-02-20 11:13 UTC, Neil Gulati
Details
Export of SVG from same ODG file using fresh 6.0.1.1 to demonstrate fix. (7.90 KB, image/svg+xml)
2018-03-04 04:57 UTC, Neil Gulati
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Gulati 2018-02-16 10:26:52 UTC
Description:
LibreOffice Draw 5.4.5.1 40m0 (Build:1)

Archlinux Linux carbon 4.15.3-1-ARCH #1 SMP PREEMPT Mon Feb 12 23:01:17 UTC 2018 x86_64 GNU/Linux

Exporting to SVG produces a corrupt image, relocating vectors catastophically. Export to PDF works fine.


Steps to Reproduce:
1. Open this file: https://github.com/anilsg/lodraw-svg-export-bug/blob/master/disk.odg
2. Observe correct view of the image is rendered in LO Draw.
3. Export to PDF and observe correct view is retained when viewed in PDF viewer.
4. Export to SVG and when viewed in any viewer such as gpicview notice image corrupted.

Actual Results:  
SVG image is nothing like the actual image in LODraw. Vectors are relocated catastrophically: https://github.com/anilsg/lodraw-svg-export-bug/blob/master/disk.svg

Expected Results:
The expected SVG image should be like the PDF export, which is produced correctly: https://github.com/anilsg/lodraw-svg-export-bug/blob/master/disk.pdf


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 5.4.5.1
Build ID: 5.4.5-1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); Calc: group

This release was supplied by ArchLinux.


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Neil Gulati 2018-02-16 10:29:00 UTC
Created attachment 139941 [details]
LODraw ODG file that demonstrates the issue
Comment 2 Imai 2018-02-20 08:34:04 UTC
Issue not reproduced.
there is no image problem for me.
---
OS X EL Capitan
Ver:10.11.3

version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 4; OS:Mac OS X 10.11.3; UI render: default; 
local: ja-JP (ja.UTF-8); Calc: group
Comment 3 Neil Gulati 2018-02-20 11:13:41 UTC
Created attachment 140013 [details]
Screenshot of how the broken export SVG looks.

Thanks Imai.
I attach a screenshot of how the SVG export looks on my platform when viewed in my gpicview viewer.
Comment 4 raal 2018-03-03 16:14:22 UTC
No repro with Version: 6.1.0.0.alpha0+
Build ID: 44b4ad7d210097fdaed7dd94c5746b03f43592d3
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 

Seems to be fixed with dev version. Please could you test it with
dev version?  You can download it here:
http://dev-builds.libreoffice.org/daily/master/
Comment 5 Neil Gulati 2018-03-04 04:49:54 UTC
Thanks raal

I downloaded LibreOffice fresh 6.0.1.1 because that was easily available (pacman on arch).

That was sufficient. SVG now exports successfully without corruption.

Version: 6.0.1.1
Build ID: 6.0.1-1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); Calc: group
Comment 6 Neil Gulati 2018-03-04 04:51:14 UTC
Fixed in fresh 6.0.1.1
Comment 7 Neil Gulati 2018-03-04 04:57:57 UTC
Created attachment 140323 [details]
Export of SVG from same ODG file using fresh 6.0.1.1 to demonstrate fix.

The diff of the old disk.svg and the new disk-fresh.svg is interesting.