assert that GTKGetWindow() returns non-NULL GdkWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3562,7 +3562,14 @@ void wxWindowGTK::GTKUpdateCursor()
|
||||
const size_t count = windowsThis.size();
|
||||
for ( size_t n = 0; n < count; n++ )
|
||||
{
|
||||
gdk_window_set_cursor(windowsThis[n], cursor.GetCursor());
|
||||
GdkWindow *win = windowsThis[n];
|
||||
if ( !win )
|
||||
{
|
||||
wxFAIL_MSG(_T("NULL window returned by GTKGetWindow()?"));
|
||||
continue;
|
||||
}
|
||||
|
||||
gdk_window_set_cursor(win, cursor.GetCursor());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user