X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f7bcb48fd9a642036a3bf5c70e2b0c9576df1b1..e015e7f3acef09b57bcd34e8f6780a19afdfd97b:/src/os2/button.cpp diff --git a/src/os2/button.cpp b/src/os2/button.cpp index 05a44eb6cc..d75aa8258a 100644 --- a/src/os2/button.cpp +++ b/src/os2/button.cpp @@ -141,6 +141,7 @@ wxSize wxButton::DoGetBestSize() const int nWidthButton; int nWidthChar; int nHeightChar; + wxFont vFont = (wxFont)GetFont(); GetTextExtent( rsLabel ,&nWidthButton @@ -150,7 +151,7 @@ wxSize wxButton::DoGetBestSize() const wxGetCharSize( GetHWND() ,&nWidthChar ,&nHeightChar - ,(wxFont*)&GetFont() + ,&vFont ); //