diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-06-12 15:15:50 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-06-20 11:00:52 +0000 |
commit | c4d8be28dbf96687a9651eb287637ff535bdebb6 (patch) | |
tree | fe07a9359a1893a3cb923ca70a9c8779ebfca3b4 /tests | |
parent | c0f586c374d6efbac2b3a25a1cb37924c70286db (diff) | |
download | qtsvg-c4d8be28dbf96687a9651eb287637ff535bdebb6.tar.gz |
Do not reallocate memory for QImage
If the QImage given to read() already has the right size and depth, we
don't need to allocate a new image. This is consistent with other
image decoders and why a QImage is provided to the method in the first
place.
Change-Id: I4944211d4a8d4f19d000cace4a48df505d375f52
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions