Fix canvas rect bound calculation

It turns out the calculation of the bounding rect for canvas items has a nasty bug. When a transform is applied (especially in a custom draw), in the renderer this extra matrix is applied to all later commands in the canvas item. However in the calculation of the bound, the transform is only applied to the first command following the transform.

This PR fixes this inconsistency.

(cherry picked from commit 6e022a382d)
This commit is contained in:
lawnjelly 2021-05-28 08:44:59 +01:00 committed by Rémi Verschelde
parent 3574c87888
commit 0d5be76f15
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1079,7 +1079,6 @@ public:
if (found_xform) {
r = xf.xform(r);
found_xform = false;
}
if (first) {