Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.3, 5.10.0
-
7a4ebf1b714956c7a8b676d83ea8461b2cdc0db3 (qt/qtbase/dev)
Description
When using QSvgRenderer to render a polyline that reaches the same point twice the line is rendered as closed path even if the angle of the lines is such that there should be a partial gap. This is best illustrated with screenshots: Attached chromesvg.png has a gap in the top of the pentagon while qtsvg.png shows solid line, which is how Qt renders it. The gap should be there, because this is a polyline, not a polygon.
This can be reproduced with Qt's SVG Viewer Example. Open the attached qtbug.svg file in SVG Viewer and compare it to the result in a browser (Chrome and Safari tested). If the points differ even a tiniest bit (e.g. add 0.0001 to one of the coordinates) the problem doesn't reproduce.