Fix crash on null Qimage in QSGPainterNode::paint
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 5 Jan 2012 09:14:52 +0000 (10:14 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 11:08:56 +0000 (12:08 +0100)
commitc582499370743d4c6d23baa1c839193e531d8a45
treefe9af9bacc295462399255ea28dc01b4a2f63794
parentc738512a571827e6070a10e4ee2f345ff5e7ff10
Fix crash on null Qimage in QSGPainterNode::paint

Creating a QPainter on a null image is not allowed,
return early if this is the case.

Change-Id: I56f30c0fd84eefc1676d6b980f77269abace07ce
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/scenegraph/util/qsgpainternode.cpp