Fix invalid memcpy(dst, src) calls where dst == src
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Wed, 20 Aug 2014 10:18:37 +0000 (12:18 +0200)
committerAllan Sandfeld Jensen <allan.jensen@digia.com>
Wed, 20 Aug 2014 13:54:41 +0000 (15:54 +0200)
commit9b11f0bac8f4a6b3c0b960e40bf74830eb5c1056
tree549bc1c835438b9fb98e479012e7e16c38072be0
parent198009db79a85d3cab7fe3a6432635d36123a2d6
Fix invalid memcpy(dst, src) calls where dst == src

The convert_generic_inline method was not correctly handling the case
where both the conversion methods were passthrough and the last store
is therefore not needed and may trigger an invalid memcpy call.

Change-Id: Ic88780f50e1ff9dedc04b8ff1ab3527dd0c8150c
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/gui/image/qimage_conversions.cpp