]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/cursor.cpp
don't use -q option with egrep, Solaris doesn't have it (bug 517145)
[wxWidgets.git] / src / mgl / cursor.cpp
index f1ce135b33cb2e67f76c7c8886d13c5af1cd6c39..896f2d4f62dcc4bbe0f71093799d566108f54564 100644 (file)
@@ -203,12 +203,14 @@ void wxSetCursor(const wxCursor& cursor)
 {
     if ( cursor.Ok() )
     {
-        MGL_wmSetGlobalCursor(g_winMng, *cursor.GetMGLCursor());
+        if ( g_winMng )
+            MGL_wmSetGlobalCursor(g_winMng, *cursor.GetMGLCursor());
         gs_globalCursor = cursor;
     }
     else
     {
-        MGL_wmSetGlobalCursor(g_winMng, NULL);
+        if ( g_winMng )
+            MGL_wmSetGlobalCursor(g_winMng, NULL);
         gs_globalCursor = wxNullCursor;        
     }
 }