X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a00ffdf1c6f5f80d1220d141ba16abb0b635d094..8a8dcc3421f4740681173a6fbe8359fc977599dc:/src/os2/radiobox.cpp diff --git a/src/os2/radiobox.cpp b/src/os2/radiobox.cpp index 14ba806ec5..283fd9cdbf 100644 --- a/src/os2/radiobox.cpp +++ b/src/os2/radiobox.cpp @@ -107,11 +107,12 @@ void wxRadioBox::AdjustButtons( int nStartY; int nMaxWidth; int nMaxHeight; + wxFont vFont = GetFont(); wxGetCharSize( m_hWnd ,&nCx1 ,&nCy1 - ,&GetFont() + ,&vFont ); vMaxSize = GetMaxButtonSize(); nMaxWidth = vMaxSize.x; @@ -463,6 +464,7 @@ void wxRadioBox::DoSetSize( int nTotHeight; int nStartX; int nStartY; + wxFont vFont = GetFont(); m_nSizeFlags = nSizeFlags; GetPosition( &nCurrentX @@ -484,7 +486,7 @@ void wxRadioBox::DoSetSize( wxGetCharSize( m_hWnd ,&nCx1 ,&nCy1 - ,&GetFont() + ,&vFont ); // @@ -903,11 +905,12 @@ wxSize wxRadioBox::GetTotalButtonSize( int nHeight; int nWidth; int nWidthLabel; + wxFont vFont = GetFont(); wxGetCharSize( m_hWnd ,&nCx1 ,&nCy1 - ,(wxFont*)&GetFont() + ,&vFont ); nExtraHeight = nCy1;