]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed m_majorDim bug a bit more (was still getting divide by zero error)
authorMichael Bedward <mbedward@ozemail.com.au>
Fri, 30 Jul 1999 04:20:07 +0000 (04:20 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Fri, 30 Jul 1999 04:20:07 +0000 (04:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/radiobox.cpp

index 83cb28543e398bac42516c62c66199cd1d09e670..6845b047db74b09c47360303a0dac61ccdef2906 100644 (file)
@@ -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));