X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..350a44d9c0b439cfcfb08142403a6d34a069e3f4:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index a30d967d59..470c2380e9 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -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