X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..1e3698e55d7ee45267b69fa8ed5f94886ad47be9:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 6ac1773a14..fc09ed7eb5 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -2069,7 +2069,7 @@ void wxWindow::OnInternalIdle() wxCursor cursor = m_cursor; if (g_globalCursor.Ok()) cursor = g_globalCursor; - if (m_currentGdkCursor != cursor) + if (cursor.Ok() && m_currentGdkCursor != cursor) { gdk_window_set_cursor( window, cursor.GetCursor() ); m_currentGdkCursor = cursor;