X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9830033051ecd1f265326be9d48240dfebe9fcb3..4ff9eba64430e251a975b1d4051b8380501e0d72:/src/motif/radiobox.cpp diff --git a/src/motif/radiobox.cpp b/src/motif/radiobox.cpp index 83cb28543e..33b1ab2f25 100644 --- a/src/motif/radiobox.cpp +++ b/src/motif/radiobox.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include "wx/motif/private.h" void wxRadioBoxCallback (Widget w, XtPointer clientData, XmToggleButtonCallbackStruct * cbs); @@ -124,7 +124,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, Arg args[3]; - majorDim = (n + m_majorDim - 1) / majorDim; + m_majorDim = (n + m_majorDim - 1) / m_majorDim; XtSetArg (args[0], XmNorientation, ((style & wxHORIZONTAL) == wxHORIZONTAL ? XmHORIZONTAL : XmVERTICAL));