X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/312ebad4cd1fad97a79aaed7102611df88806410..8397b2f7a98e25b5bcc500c40343d36b2d2e24a7:/src/os2/choice.cpp diff --git a/src/os2/choice.cpp b/src/os2/choice.cpp index 5e4d3e4ad2..9e4e5e1378 100644 --- a/src/os2/choice.cpp +++ b/src/os2/choice.cpp @@ -360,6 +360,7 @@ wxSize wxChoice::DoGetBestSize() const int nItems = GetCount(); int nCx; int nCy; + wxFont vFont = (wxFont)GetFont(); for (int i = 0; i < nItems; i++) { @@ -386,7 +387,7 @@ wxSize wxChoice::DoGetBestSize() const wxGetCharSize( GetHWND() ,&nCx ,&nCy - ,(wxFont*)&GetFont() + ,&vFont ); nChoiceWidth += 5 * nCx;