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
This commit is contained in:
Robin Dunn 2005-04-02 03:58:21 +00:00
parent a2e2643866
commit 0c8b041f14

View File

@ -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;