don't crash if m_widget == NULL in OnInternalIdle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a10a31ce56
commit
b3d006af0f
@ -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() );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2932,13 +2932,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() );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user