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

[REG 5.13->5.14] SVG with viewBox not in (0,0) is not rendered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.14
    • Fix Version/s: 5.14.0 RC1
    • Component/s: SVG Support
    • Environment:
      macOS 10.14.6, Xcode 10.3
      Windows 10 1903, MSVC 2017, x64
    • Platform/s:
      All
    • Commits:
      c3ba57620c2c40d285004af2e1809e581e6bb7e7 (qt/qtsvg/5.14.0)

      Description

      SVG file containing view box not in (0,0) is not rendered correctly. In my particular case image becomes invisible. This happened because of incorrect translate.

      Bug introduced by commit https://code.qt.io/cgit/qt/qtsvg.git/commit/?h=5.14&id=14fa4591eb34a35cf3d485fd901e3f1e2caa7770

      SVG file and sample program reproducing this bug are attached. Also I attached a patch with "quick and dirty" fix of it.

      Any branch above 5.13 (but not including) is affected.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vgt Eirik Aavitsland
              Reporter:
              nick-korotysh Nick Korotysh
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes