summaryrefslogtreecommitdiffstats
path: root/src/gui/embedded/qwscursor_qws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/embedded/qwscursor_qws.cpp')
-rw-r--r--src/gui/embedded/qwscursor_qws.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/embedded/qwscursor_qws.cpp b/src/gui/embedded/qwscursor_qws.cpp
index 3a5bd2cb66..b25e9b1ef3 100644
--- a/src/gui/embedded/qwscursor_qws.cpp
+++ b/src/gui/embedded/qwscursor_qws.cpp
@@ -531,7 +531,7 @@ void QWSCursor::set(const uchar *data, const uchar *mask,
cursor = QImage(width,height, QImage::Format_Indexed8);
- if (!width || !height || !data || !mask)
+ if (!width || !height || !data || !mask || cursor.isNull())
return;
cursor.setNumColors(3);