Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.8
-
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
For Gerrit Dashboard: QTBUG-126486 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
560543,40 | Correct the calculation of the buffer sizes in filter | dev | qt/qtsvg | Status: MERGED | +2 | 0 |
579526,3 | Correct the calculation of the buffer sizes in filter | 6.8 | qt/qtsvg | Status: MERGED | +2 | 0 |
582074,1 | Correct the calculation of the buffer sizes in filter | 6.7 | qt/qtsvg | Status: ABANDONED | 0 | 0 |