Remove qWarning() in qt_mac_image_to_cgimage()

Change-Id: I839aa44735910012bf57daa9c8b55c5e6def3cd2
Reviewed-by: James Turner <james.turner@kdab.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
Ivan Komissarov 2013-07-02 14:57:32 +04:00 committed by The Qt Project
parent eeffcfbd89
commit 4634b7516d

View File

@ -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)