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