]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
Improved handling of anchors in wxHTML: scroll to better position (patch #11406).
[wxWidgets.git] / 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();
     }