Cocoa: add qWarnining when trying to create 0 width/height CGImages
authorTeemu Katajisto <teemu.katajisto@digia.com>
Fri, 5 Oct 2012 10:48:43 +0000 (13:48 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 06:51:09 +0000 (08:51 +0200)
commit179437bdbad3fa2f27ea7fc3a4284a844cb30792
treea8327fcb729903f8c0de292bb2f769f3cf1b4a05
parent1bd710cbc77f71451527b9436c2d8935d8526bd5
Cocoa: add qWarnining when trying to create 0 width/height CGImages

Add meaningful warnings when trying to create 0 width/height CGImages.
This way it is easier to track down the place where valid size is not
used.

Change-Id: Id261ddf72d5487afcdb1a2a6d0d9079700888545
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoahelpers.mm
src/plugins/platforms/cocoa/qnsview.mm
src/plugins/platforms/cocoa/qpaintengine_mac.mm