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

SVG files with comments aren't correctly scaled in QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 Beta
    • 5.5.1, 5.6.0 Alpha
    • SVG Support
    • None
    • OS X

    Description

      SVG files beginning with a comment (before the <svg> tag) are always rendered at the intrinsic size - as if Image.sourceSize wasn't specified. An identical file without the comment will be rendered at the correct scale.

      Adobe Illustrator outputs SVGs like this by default.

      A small testcase is attached. It will draw a raster-scaled triangle from triangle.svg and vector-scaled triangle from triangle2.svg. The files are identical, other than the comment.

      Attachments

        For Gerrit Dashboard: QTBUG-49496
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            special John Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes