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:
Vadim Zeitlin
2006-08-27 10:04:28 +00:00
parent b3c861501a
commit 5dd7eef7de

View File

@@ -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());
}
}
}