From: Robin Dunn Date: Sat, 2 Apr 2005 03:58:21 +0000 (+0000) Subject: Use the current font for the DoGetBestSize calculation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0c8b041f147ff9bb6ce38f0e2da1fd82f6484523 Use the current font for the DoGetBestSize calculation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/button.cpp b/src/msw/button.cpp index cdad2d28da..b50d0c6bd8 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -217,7 +217,7 @@ WXDWORD wxButton::MSWGetStyle(long style, WXDWORD *exstyle) const wxSize wxButton::DoGetBestSize() const { wxClientDC dc(wx_const_cast(wxButton *, this)); - dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); + dc.SetFont(GetFont()); wxCoord wBtn, hBtn;