From 4634b7516d3c3a62c239f1e4f7a308ba0603bcdb Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Tue, 2 Jul 2013 14:57:32 +0400 Subject: Remove qWarning() in qt_mac_image_to_cgimage() Change-Id: I839aa44735910012bf57daa9c8b55c5e6def3cd2 Reviewed-by: James Turner Reviewed-by: Gabriel de Dietrich Reviewed-by: Jake Petroules --- src/plugins/platforms/cocoa/qcocoahelpers.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/platforms/cocoa') diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm index 09d1a96789..3ade0a2a45 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.mm +++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm @@ -84,11 +84,8 @@ static void drawImageReleaseData (void *info, const void *, size_t) CGImageRef qt_mac_image_to_cgimage(const QImage &img) { - if (img.width() <= 0 || img.height() <= 0) { - qWarning() << Q_FUNC_INFO << - "trying to set" << img.width() << "x" << img.height() << "size for CGImage"; + if (img.isNull()) return 0; - } QImage *image; if (img.depth() != 32) -- cgit v1.2.3