X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7dcb9399059d0c9719e2bb96f503d3adafa6730..0e32fdb872d413f14da8ce045766f0e2f13e202d:/src/motif/radiobox.cpp diff --git a/src/motif/radiobox.cpp b/src/motif/radiobox.cpp index 6d4d088da2..82baee26db 100644 --- a/src/motif/radiobox.cpp +++ b/src/motif/radiobox.cpp @@ -17,6 +17,8 @@ #define XtDisplay XTDISPLAY #endif +#include "wx/defs.h" + #include "wx/radiobox.h" #include "wx/utils.h" @@ -484,7 +486,7 @@ void wxRadioBoxCallback (Widget w, XtPointer clientData, wxRadioBox *item = (wxRadioBox *) clientData; int sel = -1; int i; - for (i = 0; i < item->Number(); i++) + for (i = 0; i < item->GetCount(); i++) if (item->GetRadioButtons() && ((Widget) (item->GetRadioButtons()[i]) == w)) sel = i; item->SetSel(sel);