]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Committing in .
[wxWidgets.git] / src / os2 / statbox.cpp
index 97f0152e573e5b04bd870997409c6712ad20ef8d..1911f67045bf19c31536a725e4bdf53fe38256fe 100644 (file)
@@ -93,10 +93,10 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
   return FALSE;
 }
 
-wxSize wxStaticBox::DoGetBestSize()
+wxSize wxStaticBox::DoGetBestSize() const
 {
     int cx, cy;
-    wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
+    wxGetCharSize(GetHWND(), &cx, &cy, (wxFont*)&GetFont());
 
     int wBox;
     GetTextExtent(wxGetWindowText(m_hWnd), &wBox, &cy);