]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
Better temporary fix.
[wxWidgets.git] / src / gtk / window.cpp
index a73310396d67df6e4d78d4fc9571f328e8fd9465..424a219958c33517895e4241879e82fdb4dbb170 100644 (file)
@@ -3036,13 +3036,11 @@ void wxWindowGTK::OnInternalIdle()
                 gdk_window_set_cursor( window, cursor.GetCursor() );
 
         }
-        else
+        else if ( m_widget )
         {
-
             GdkWindow *window = m_widget->window;
-            if ((window) && !(GTK_WIDGET_NO_WINDOW(m_widget)))
+            if ( window && !GTK_WIDGET_NO_WINDOW(m_widget) )
                gdk_window_set_cursor( window, cursor.GetCursor() );
-
         }
     }