Bug 75314 - SVG: Some closed path and groupped path not handled properly
Summary: SVG: Some closed path and groupped path not handled properly
Status: RESOLVED DUPLICATE of bug 90168
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.2.1.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Open
  Show dependency treegraph
 
Reported: 2014-02-21 11:05 UTC by ZioTibia81
Modified: 2018-06-20 17:03 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG path not handled correctly (2.96 KB, image/svg+xml)
2014-02-21 11:05 UTC, ZioTibia81
Details
Screenshot of prevously attached SVG opened using Inkscape (15.29 KB, image/jpeg)
2014-02-21 11:06 UTC, ZioTibia81
Details
Screenshot of prevously attached SVG opened using Draw (19.72 KB, image/jpeg)
2014-02-21 11:13 UTC, ZioTibia81
Details
test.svg (17.17 KB, image/svg+xml)
2014-07-16 08:52 UTC, ZioTibia81
Details
Result importing test.svg (11.66 KB, application/vnd.oasis.opendocument.graphics)
2014-07-16 08:54 UTC, ZioTibia81
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZioTibia81 2014-02-21 11:05:08 UTC
Created attachment 94502 [details]
SVG path not handled correctly

Some closed path are handles as opened path, and groupped path as handles as ungroupped.

See attachments for details
Comment 1 ZioTibia81 2014-02-21 11:06:23 UTC
Created attachment 94503 [details]
Screenshot of prevously attached SVG opened using Inkscape
Comment 2 ZioTibia81 2014-02-21 11:13:11 UTC
Created attachment 94504 [details]
Screenshot of prevously attached SVG opened using Draw

You can notiche that:

- Triangle path on righ are open (in inkscape they are closed)
- The groupped object on the middle is rendered as rectangle (in inkscape is rendered as a triangle)
Comment 3 ZioTibia81 2014-07-16 08:52:02 UTC
Created attachment 102907 [details]
test.svg
Comment 4 ZioTibia81 2014-07-16 08:54:52 UTC
Created attachment 102908 [details]
Result importing test.svg

- Text not imported
- Arrows imported as two triangles and one square (see circle)
- Vertical black line that's not present in svg
- Varous black triangles that's not presents in svg
Comment 5 ZioTibia81 2014-07-16 08:56:28 UTC
LAst comment refer to import using LibreOffice 4.2.5.2 win32
Comment 6 Jorendc 2014-07-29 09:16:27 UTC
Reproducible when you do File > Open. Works correct when doing Insert > Image > from file...

Tested using Ubuntu 14.04 with LibreOffice Version: 4.4.0.0.alpha0+
Build ID: b4ccde72b8e2e45e7276d5b08b182495a1b1a617

Kind regards,
Joren
Comment 7 V Stuart Foote 2015-02-19 04:34:08 UTC
On Windows 7 sp1, 64-bit en-US with
Version: 4.5.0.0.alpha0+
Build ID: b13534de022972131b46f93f5ada90af155eec9e
TinderBox: Win-x86@39, Branch:master, Time: 2015-02-19_00:08:56
Locale: en_US

no improvement with Vort's work on bug 64075

Remains correct when SVG image is inserted (Insert -> Image), but incorrect when filter opened into Draw (File -> Open, or Start Center launch).
Comment 8 Evgeniy 2015-09-23 12:26:32 UTC
Opened figures? It's simple bug: LibreOffice Draw requires "Z" (close figure command) at end of "d" attribute in <path> token. w3c SVG specification does not describe such a requirement. This is filled blue rectangle with horizontal line:
<path style=" stroke:rgb(0%,0%,0%);fill-rule:evenodd;fill:rgb(0%,0%,100%);fill-opacity:1;" d="M 25 75 L 50 25 L 75 75 Z M 10 50 l 80 0 Z"/>
This rectangle is not closed and respectively not filled:
<path style=" stroke:rgb(0%,0%,0%);fill-rule:evenodd;fill:rgb(0%,0%,100%);fill-opacity:1;" d="M 25 75 L 50 25 L 75 75 Z M 10 50 l 80 0"/>
Difference in one command: "Z" at end of path. I hope in the next release will be fixed.
Comment 9 Xisco Faulí 2015-10-27 16:45:44 UTC

*** This bug has been marked as a duplicate of bug 90168 ***
Comment 10 Robinson Tryon (qubit) 2015-12-17 05:52:11 UTC
Migrating Whiteboard tags to Keywords: (filter:svgOpen)
[NinjaEdit]