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

Multiple Issues with bounding box in QtSvg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.8
    • SVG Support
    • 25
    • 186a8fbcb (dev), 2e35b700f (6.8)
    • Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113

    Description

      Filters change the bounding box of an SVG element in most reference implementations such as Chrome and Firefox. This is important because applying another filter on top (made possible by putting the element into a group element and applying the filter to the group element) will then lead to different results.

      Another issue with the bounding box affects the fix for QTBUG-122310. Here we need a buffer that contains all graphic elements of the group, including markers. However, markers are not part of the bounding box (as used in filters) in reference implementations such as Chrome and Firefox.

      We probably need two functions, one including filters, another one including filters and markers. The current implementation ignores both.

      This is a bug that was discovered in a users svg:
      https://github.com/linuxdeepin/deepin-icon-theme/blob/master/bloom/apps/96/deepin-image-viewer.svg
      https://github.com/linuxdeepin/deepin-icon-theme/blob/master/bloom/apps/96/deepin-screen-recorder.svg

      Attachments

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

        Activity

          People

            matthias_rauter Matthias Rauter
            matthias_rauter Matthias Rauter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes