X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9eee2db810695ae4417e9935475f268bb68bbac..5e80ff3d31fde40c3cef5a3b47d08850d95b5d1a:/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