]> git.saurik.com Git - wxWidgets.git/commitdiff
don't place NULL pointers in the GDK window array in GTKGetWindow()
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 1 May 2009 14:15:13 +0000 (14:15 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 1 May 2009 14:15:13 +0000 (14:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/radiobox.cpp

index 18f02bf683bcc063733516fac2a17dfaf7574316..a0e73a219d71ed668a47f6ed9b7b20435782d753 100644 (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();
     }