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:
Vadim Zeitlin 2006-07-16 18:44:51 +00:00
parent a10a31ce56
commit b3d006af0f
2 changed files with 4 additions and 8 deletions

View File

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

View File

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