don't place NULL pointers in the GDK window array in GTKGetWindow()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2009-05-01 14:15:13 +00:00
parent cbeda384e5
commit 5b88a837ba

View File

@ -608,7 +608,9 @@ GdkWindow *wxRadioBox::GTKGetWindow(wxArrayGdkWindows& windows) const
{
GtkWidget *button = GTK_WIDGET( node->GetData()->button );
windows.push_back(button->window);
// don't put NULL pointers in the 'windows' array!
if (button->window)
windows.push_back(button->window);
node = node->GetNext();
}