diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-11-08 14:32:51 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-11-11 08:13:42 +0100 |
commit | c3ba57620c2c40d285004af2e1809e581e6bb7e7 (patch) | |
tree | 8a0d3b3a7e77319b01aa637f8301b17be3f5db21 /dist/changes-5.9.0 | |
parent | 9aeb3523a7fc521b725be106b1521335061c43b3 (diff) | |
download | qtsvg-c3ba57620c2c40d285004af2e1809e581e6bb7e7.tar.gz |
Fix rendering of SVG with translating viewBox
This is a modification of14fa4591eb34a35cf3d485fd901e3f1e2caa7770.
That change correctly implemented support for scaling and centering
viewBox. However, the viewBox scaling and x-min/y-min translation was
applied in the wrong order, so SVGs with a non-zero x-min/y-min
viewBox would be rendered with an offset.
The autotest reflected this error, and is also fixed here. (In user
space, the black rectangle's upper left corner (0,0) is in the center
of the viewBox and so should end up in the center of the produced
image, independently of the scaling. All other tested SVG renderers
place it there.)
This change fixes all the reported regression cases from the above
commit, while not re-breaking the original cases fixed by that commit.
Fixes: QTBUG-79333
Fixes: QTBUG-78200
Task-number: QTBUG-70256
Change-Id: I0d3394e3caf6ec7edf16a10992c2fbfdac7398e5
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'dist/changes-5.9.0')
0 files changed, 0 insertions, 0 deletions