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:
parent
a2e2643866
commit
0c8b041f14
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user