diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-23 11:17:06 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-23 13:03:13 (GMT) |
commit | 72fb0f2637db401efd178b9d4139fc2b6ef59112 (patch) | |
tree | b9c2dcbd3208e7569ad813646474d1d39df5f2fa /src/openvg | |
parent | a1301736c3fdc25bdf6f35bf67747804adb83ac3 (diff) | |
download | Qt-72fb0f2637db401efd178b9d4139fc2b6ef59112.zip Qt-72fb0f2637db401efd178b9d4139fc2b6ef59112.tar.gz Qt-72fb0f2637db401efd178b9d4139fc2b6ef59112.tar.bz2 |
Wrong worldTransform() on the painter in QGraphicsScene::drawForeground.
The painter's worldTransform() is updated for each item we draw, and
when the DontSavePainterState optimization flag is set, this change is
not protected by save() and restore(). After all the items are drawn, it
means the painter is left with the last drawn item's transform. We
therefore have to make sure it is reset back to whatever it was before
the items were drawn.
Auto-test included.
Task-number: QTBUG-4973
Reviewed-by: alexis
Reviewed-by: andreas
Diffstat (limited to 'src/openvg')
0 files changed, 0 insertions, 0 deletions