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:
parent
cbeda384e5
commit
5b88a837ba
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user