]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/button.cpp
fixed TREE_ITEM_MENU generation from right mouse clicks: don't pass WM_RBUTTONDOWN...
[wxWidgets.git] / src / msw / button.cpp
index cdad2d28dafdb742e21438f0d806505834d1e7d0..b50d0c6bd88b9339ea7215f6be9a2c7cd99422bd 100644 (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;