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:
@@ -217,7 +217,7 @@ WXDWORD wxButton::MSWGetStyle(long style, WXDWORD *exstyle) const
|
|||||||
wxSize wxButton::DoGetBestSize() const
|
wxSize wxButton::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
wxClientDC dc(wx_const_cast(wxButton *, this));
|
wxClientDC dc(wx_const_cast(wxButton *, this));
|
||||||
dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
dc.SetFont(GetFont());
|
||||||
|
|
||||||
wxCoord wBtn,
|
wxCoord wBtn,
|
||||||
hBtn;
|
hBtn;
|
||||||
|
Reference in New Issue
Block a user