From 4ed984684547dc6267147625fab33e56cf461ae3 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 2 May 2009 10:06:54 +0000 Subject: [PATCH] backport of r60458 from trunk: don't put NULL pointers in the GdkWindowArray git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/radiobox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 18f02bf683..a0e73a219d 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -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(); }