Created attachment 63127 [details]
The attached file is rendered correctly by Firefox as a square outlined in blue and filled in orange. It is rendered incorrectly by LibreOffice, which outlines it in blue but does not fill it.
This is due to the "move" SVG path command which follows the close path command "Z". If this move command is removed, the shape is rendered correctly.
(In reply to comment #0)
Tested with: Version 220.127.116.11 (Build ID: e29a214) Slackware Linux
Created attachment 87952 [details]
Same as pure svg graphic
I don't think, that the additional moveto command is the reason. I have extracted the svg graphic to a separate file. Open draw and insert it via Insert > Picture. Notice, that the filling is there.
But when you use File > Open, the filling is missing in LO but not in AOO.
There must be something in addition.
BTW, the XHTML-document is not valid.
Notice, that when you use File > Open, the svg-graphic is converted to Draw-objects. If you insert the svg-graphic via Insert > Picture it remains a svg-graphic.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice (18.104.22.168 or later)
If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword
Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for your help!
-- The LibreOffice QA Team This NEW Message was generated on: 2015-09-03
The file open behavior is still wrong as described. I have used
Build ID: fdafa5302df26df4f147b0d2efb6064389a1330c
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-08-22_23:42:26
Locale: de-DE (de_DE)
Open the file and hit F8 (edit points). Right click on square -> close object makes the correct fill appear which suggests that it is a rendering and not an import bug.
Created attachment 120329 [details]
fill with open second subpath
If you close the shape you change its geometry, because this adds an additional line.
You are right, that currently such svg:d path cannot be handled. But the solution is not straight forward, because there is no unique place, where svg:d is handled, see https://bz.apache.org/ooo/show_bug.cgi?id=119118#c9
The implementation misses, that already a subpath in-between can be closed and filled.
ODF has no way to fill an open path. This feature of SVG cannot be mapped to ODF directly. The insert filter generates in such cases a separate polygon purely for filling and polyline for the stroke, to get the same visual appearance.
The attached file really draws lines after the move command. It shows the same problem and makes clear, that simply removing the move command in attachment 87952 [details] would not solve the problem generally.
Chr. Rossmanith committed a patch related to this issue.
It has been pushed to "master":
tdf#51165: handle mixture of open and closed polygons in a path
It will be available in 5.1.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (filter:svgOpen)
Is this bug fixed?
If so, could you please close it as RESOLVED FIXED?