From 0c8b041f147ff9bb6ce38f0e2da1fd82f6484523 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 2 Apr 2005 03:58:21 +0000 Subject: [PATCH] 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 --- src/msw/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2