Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27058

QtSvg does not render dots i.e. paths with zero length

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 4.8.1
    • SVG Support
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hatemelkharashy Hatem ElKharashy
              jamadagni Shriramana Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes