Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
4.8.1
-
None
Description
In SVG it is possible to represent dots by a path with zero length i.e. with just one moveto command and a zero length lineto.
For example:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 200 200">
<rect x="50" y="50" width="100" height="100" fill="yellow" stroke="blue" stroke-width="10" />
<path d="M100 100l0 0" style="stroke:rgb(0%,0%,100%); stroke-width: 10;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10;fill: none;"></path>
</svg>
The above SVG represents a square stroked with blue and filled with yellow with a dot at the centre. The above code checks out as valid SVG 1.1 at http://validator.w3.org/. Inkscape, Firefox, ImageMagick etc all render it correctly. However QtSvg does not render it at all. (Checked using a QSvgWidget inside an app and the SVG Viewer example as well.)
Please fix it so that dots in SVG are displayable. Thanks.
Attachments
Issue Links
- relates to
-
QTBUG-132468 Polyline with stroke displays nothing when all points are the same
-
- Closed
-
For Gerrit Dashboard: QTBUG-27058 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
531590,1 | Make sure QPainterPath does not delete similar points | dev | qt/qtsvg | Status: ABANDONED | 0 | 0 |