From f5ddb02e65dcbd83aed7848787205743d3de064e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Jan 2010 22:01:24 +0000 Subject: [PATCH] Don't place NULL pointers in the GDK window array in GTKGetWindow(). This avoids an assert in GTKUpdateCursor() later on. Backport of r60458 from trunk. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/radiobox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index b75525767f..ba7f337cc8 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -653,7 +653,8 @@ GdkWindow *wxRadioBox::GTKGetWindow(wxArrayGdkWindows& windows) const { GtkWidget *button = GTK_WIDGET( node->GetData()->button ); - windows.push_back(button->window); + if (button->window) + windows.push_back(button->window); node = node->GetNext(); }