[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    koffice/krita/ui
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2009-12-24 10:13:39
Message-ID: 1261649619.320288.4996.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1065793 by rempt:

temporary fix for krita crashing in debug mode because of missing cursor images

CCMAIL: kimageshop@kde.org

There is at least one cursor image missing for the selection tools. This
led to an assert in KisCursor when Krita was compiled in debug mode. Change
the assert to a runtime warning for now.

 M  +4 -2      kis_cursor.cc  


--- trunk/koffice/krita/ui/kis_cursor.cc #1065792:1065793
@@ -33,6 +33,7 @@
 #include <kstandarddirs.h>
 
 #include "kis_factory2.h"
+#include "kis_debug.h"
 
 KisCursor::KisCursor() {}
 
@@ -349,8 +350,9 @@
     QImage cursorImage;
 
     cursorImage.load(filename);
-    Q_ASSERT(!cursorImage.isNull());
-    Q_ASSERT(cursorImage.hasAlphaChannel());
+    if (cursorImage.isNull()) {
+        warnKrita << "Invalid cursor image for " << filename;
+    }
 
     QBitmap bitmap(cursorImage.width(), cursorImage.height());
     QBitmap mask(cursorImage.width(), cursorImage.height());
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic