X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fba44b4103530bd7904c4b5720b7568b753daec..2b0246530d08cf7724d94c70d631c166f9717c2c:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index cb5a1b6aa0..ef75d915d0 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -96,16 +96,12 @@ wxSize wxStaticBox::DoGetBestSize() const int nCx; int nCy; int wBox; - wxFont vFont = GetFont(); - wxGetCharSize( GetHWND() - ,&nCx - ,&nCy - ,&vFont - ); + nCx = GetCharWidth(); + nCy = GetCharHeight(); GetTextExtent( wxGetWindowText(m_hWnd) ,&wBox - ,&nCy + ,NULL ); wBox += 3 * nCx;