]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Further improvements in composite controls (wxRadioBox) on PalmOS.
[wxWidgets.git] / src / os2 / statbox.cpp
index a30d967d5945fcb6bb5c91d96b6a20075d488403..470c2380e974811690985ddf832d1f39fad443af 100644 (file)
@@ -96,11 +96,12 @@ wxSize wxStaticBox::DoGetBestSize() const
     int                             nCx;
     int                             nCy;
     int                             wBox;
+    wxFont                          vFont = GetFont();
 
     wxGetCharSize( GetHWND()
                   ,&nCx
                   ,&nCy
-                  ,(wxFont*)&GetFont()
+                  ,&vFont
                  );
     GetTextExtent( wxGetWindowText(m_hWnd)
                   ,&wBox