-
Bug
-
Resolution: Done
-
P1: Critical
-
5.14
-
macOS 10.14.6, Xcode 10.3
Windows 10 1903, MSVC 2017, x64
-
-
c3ba57620c2c40d285004af2e1809e581e6bb7e7 (qt/qtsvg/5.14.0)
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.
- relates to
-
QTBUG-70256 When a viewbox is set along with a size for the SVG it is not rendered correctly
-
- Closed
-
-
QTBUG-79333 [REG 5.13-5.14] Some SVG images are not drawn when the source size is set
-
- Closed
-
- resulted in
-
QTBUG-79933 [REG 5.13->5.14] Drawing of SVG elements into bounds broke (if a viewBox is present)
-
- Closed
-
-
QTBUG-80954 [REG 5.13->5.14] QSvgRenderer draws at incorrect position
-
- Closed
-
For Gerrit Dashboard: QTBUG-78200 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
280802,2 | Fix rendering of SVG with translating viewBox | 5.14 | qt/qtsvg | Status: MERGED | -1 | 0 |