Avoid resetting global cursor if no global cursor is set

see #17503
This commit is contained in:
Paul Cornett
2016-05-15 09:06:09 -07:00
parent 4c6dddec21
commit 5819b9cbc5

View File

@@ -415,6 +415,9 @@ bool wxIsBusy()
void wxSetCursor( const wxCursor& cursor )
{
g_globalCursor = cursor;
SetGlobalCursor(cursor);
//if (cursor.IsOk() || g_globalCursor.IsOk())
{
g_globalCursor = cursor;
SetGlobalCursor(cursor);
}
}