Fix to data detaching in OpenVG pixmap data
authorJani Hautakangas <jani.hautakangas@nokia.com>
Tue, 18 Jan 2011 08:59:34 +0000 (10:59 +0200)
committerJani Hautakangas <jani.hautakangas@nokia.com>
Tue, 18 Jan 2011 10:21:31 +0000 (12:21 +0200)
commitb928bab9dde43cf3acace6dfae0ae6a4f6649650
tree0a51bb8d2071a94b3e629f8c5df87b4275a22438
parentc756d5cffdc31228b9ab9388c307bf4eb705b923
Fix to data detaching in OpenVG pixmap data

QImage::converToFormat(format) won't detach QImage if
format stays the same. Because of this, internal QImage
buffer of QVGPixmapData was not deep copied. Drawing
to QPixmap target modified the original QImage that was
used to create QPixmap and in some cases crashed because
paint engine referred to wrong target.

Task-number: QT-4407
Reviewed-by: Jason Barron
src/openvg/qpixmapdata_vg.cpp