koffice/krita/ui
Boudewijn Rempt
boud at valdyas.org
Thu Dec 24 11:13:39 CET 2009
SVN commit 1065793 by rempt:
temporary fix for krita crashing in debug mode because of missing cursor images
CCMAIL: kimageshop at 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());
More information about the kimageshop
mailing list