diff options
author | Matt Fischer <matt.fischer@garmin.com> | 2014-09-10 13:34:51 -0500 |
---|---|---|
committer | Matt Fischer <matt.fischer@garmin.com> | 2014-09-22 21:42:32 +0200 |
commit | 38d37b13a3aae54ef0480150247d96ac9da0247a (patch) | |
tree | 525dcc6bd81dd23849521fe88cb36e5dd616c621 /tests/auto/quick | |
parent | 22792559f5bf7a3b4c39481d152acdf414bf5488 (diff) |
Fix clip state tracking in Context2D
A recent change (f45fe58ad2aa741c90b756643da75f1a6bc2fdf6)
introduced the concept of clipping being disabled for a context,
so that it can start with no clip path set. However, this state
is not properly tracked, so an attempt to restore a context state
which has no clip path does not work properly. This change adds
this information to the Clip command, so that it can be properly
restored.
This patch also re-enables a test case which was supposed to
check this behavior, but had been disabled.
Task-number: QTBUG-40312
Change-Id: I3fd5626ecfcc1298a81931828cbb590290098a92
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r-- | tests/auto/quick/qquickcanvasitem/data/tst_state.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickcanvasitem/data/tst_state.qml b/tests/auto/quick/qquickcanvasitem/data/tst_state.qml index 1ceb17b31b..18464def7c 100644 --- a/tests/auto/quick/qquickcanvasitem/data/tst_state.qml +++ b/tests/auto/quick/qquickcanvasitem/data/tst_state.qml @@ -30,7 +30,7 @@ CanvasTestCase { ctx.restore(); ctx.fillStyle = '#0f0'; ctx.fillRect(0, 0, 100, 50); - //comparePixel(ctx, 50,25, 0,255,0,255); + comparePixel(ctx, 50,25, 0,255,0,255); canvas.destroy() } function test_fillStyle(row) { |