]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/radiobut.cpp
1. wxChoice and wxComboBox support client data under MSW
[wxWidgets.git] / src / gtk1 / radiobut.cpp
index 294820894fbbf55635d35b544a12f2ebd0c84d62..35508850609680742173ac2ffc071f934fe70418 100644 (file)
@@ -93,18 +93,18 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab
                 chief = (wxRadioButton*) child;
                 if (child->HasFlag(wxRB_GROUP)) break;
            }
-           if (chief)
-           {
-                /* we are part of the group started by chief */
-               m_radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
-           }
-           else
-           {
-                /* start a new group */
-                m_radioButtonGroup = (GSList*) NULL;
-           }
            node = node->GetPrevious();
         }
+       if (chief)
+       {
+            /* we are part of the group started by chief */
+           m_radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
+       }
+       else
+       {
+            /* start a new group */
+            m_radioButtonGroup = (GSList*) NULL;
+       }
     }
 
     m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, label.mbc_str() );