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