]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checkbox.cpp
compilation fix
[wxWidgets.git] / src / msw / checkbox.cpp
index 86211b4fcd15873ab3b1e5f39ddd4a6248a6fa5a..8a5c375e22bf53271e81a0ce3ffa2fedd0201d8c 100644 (file)
@@ -159,9 +159,9 @@ wxSize wxCheckBox::DoGetBestSize() const
     if ( !s_checkSize )
     {
         wxScreenDC dc;
-        dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+        dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
 
-        s_checkSize = (3*dc.GetCharHeight())/2;
+        s_checkSize = dc.GetCharHeight();
     }
 
     wxString str = wxGetWindowText(GetHWND());