]> git.saurik.com Git - wxWidgets.git/commitdiff
font retrieval synched for setsize and bestsize
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 25 Jun 2004 12:19:33 +0000 (12:19 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 25 Jun 2004 12:19:33 +0000 (12:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/radiobox.cpp

index 0fbd9fa5f1a2613e8ff188777c46ff56fe739f31..bae79116308bd48a1e3ebf55f219b44b09144edc 100644 (file)
@@ -483,7 +483,7 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
     {
         if (i&&((i%m_majorDim)==0)) // not to do for the zero button!
         {
-            if (m_windowStyle & wxRA_VERTICAL)
+            if (m_windowStyle & wxRA_SPECIFY_ROWS)
             {
                 x_offset += maxWidth + charWidth;
                 y_offset = y_start;
@@ -512,7 +512,7 @@ wxSize wxRadioBox::DoGetBestSize() const
     int eachWidth, eachHeight;
     int totWidth, totHeight;
     
-    wxFont font = GetParent()->GetFont();
+    wxFont font = /*GetParent()->*/GetFont();
     GetTextExtent(wxT("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
         &charWidth, &charHeight, NULL, NULL, &font);