X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..8a8dcc3421f4740681173a6fbe8359fc977599dc:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index 1142b348f0..470c2380e9 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -6,7 +6,7 @@ // Created: ??/??/98 // RCS-ID: $Id$ // Copyright: (c) David Webster -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx.h". @@ -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