Fixed Canvas ImageData pixel values not being settable to 0.
authorSamuel Rødal <samuel.rodal@digia.com>
Wed, 6 Feb 2013 08:18:19 +0000 (09:18 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 7 Feb 2013 07:41:08 +0000 (08:41 +0100)
commitfc454c16c84d159767273a21019fbd65572f3bad
tree7b425ca520029a80602fdd82701a1a2ce390b61e
parent34c679bc32ae98067cd1cca5564e03f629a0f3b8
Fixed Canvas ImageData pixel values not being settable to 0.

Someone probably figured "since the data is all initialized to 0 to
begin with, we can skip 0 values". However, it's possible to temporarily
set a value to other than 0 and then back to 0, a fully valid use case
that we need to support.

Task-number: QTBUG-29065
Change-Id: Ia9f0803743d696ca8b9cca89c666ccba80a3abd0
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/context2d/qquickcontext2d.cpp
tests/auto/quick/qquickcanvasitem/data/tst_pixel.qml