Bug 91722 - Imported SVGs do not crop some elements correctly
Summary: Imported SVGs do not crop some elements correctly
Status: RESOLVED DUPLICATE of bug 90168
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks:
 
Reported: 2015-05-29 14:25 UTC by menturi
Modified: 2015-12-17 06:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original SVG document (32.69 KB, image/svg+xml)
2015-05-29 14:25 UTC, menturi
Details
Screenshot of the SVG problem area in Firefox (16.46 KB, image/png)
2015-05-29 14:26 UTC, menturi
Details
Screenshot of the SVG problem area in LibreOffice (19.93 KB, image/png)
2015-05-29 14:26 UTC, menturi
Details
ODT document with the SVG included (56.14 KB, application/vnd.oasis.opendocument.text)
2015-05-29 14:27 UTC, menturi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description menturi 2015-05-29 14:25:34 UTC
Created attachment 116136 [details]
Original SVG document

When importing an SVG with cropped elements, it will not be cropped in LibreOffice.

For an example, I have attached some documents. The SVG document, graphic.svg, was viewed in Firefox and LibreOffice, and is compared. The light blue line appears cropped in software like Firefox and Inkscape, but is not cropped in LibreOffice.

A screenshot of the problem area in Firefox 36 is shown in firefox.png and shows the correct result; it looks identical in Inkscape. However, it looks different when viewing in LibreOffice Writer. See text.odt for the document and writer.png for a screenshot of the problem area.

Tested in LO 4.4.3.2 on Windows 7.
Comment 1 menturi 2015-05-29 14:26:34 UTC
Created attachment 116137 [details]
Screenshot of the SVG problem area in Firefox
Comment 2 menturi 2015-05-29 14:26:53 UTC
Created attachment 116138 [details]
Screenshot of the SVG problem area in LibreOffice
Comment 3 menturi 2015-05-29 14:27:29 UTC
Created attachment 116139 [details]
ODT document with the SVG included
Comment 4 V Stuart Foote 2015-05-30 00:09:29 UTC
Confirming that the wider "python" line stroke extends outside the clipPath when SVG image is inserted into writer or draw. However, the "matlab" line with width not set does not.

The SVG seems correctly formed, with the <clipPath> element setting the mask contained within a <defs> segment, the id is defined only once and is applied to the two line <g> paths.

Guess there could be an LO issue in determining overlap of clip for the "python" line width of 7

=-ref-=
http://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgclippathnode.cxx
Comment 5 Xisco Faulí 2015-10-27 16:38:15 UTC

*** This bug has been marked as a duplicate of bug 90168 ***
Comment 6 Robinson Tryon (qubit) 2015-12-17 06:34:40 UTC
Migrating Whiteboard tags to Keywords: (filter:svgInsert)
[NinjaEdit]