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

SVG width and height specified as pt values are treated as px values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.0
    • SVG Support
    • None
    • Windows

    Description

      Looks like the offending code is in file qsvghandler.cpp in createSvgNode() at lines 3230 and 3237.

      It looks like this:

      if (type != QSvgHandler::LT_PT)
      

      This results in the conversion to pixels being skipped when the length type is pt.

      These lines should probably be this:

      if (type != QSvgHandler::LT_PX)
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            dismith2 Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes