diff --git a/src/generic/aboutdlgg.cpp b/src/generic/aboutdlgg.cpp index 4340dabce1..60bcdcffda 100644 --- a/src/generic/aboutdlgg.cpp +++ b/src/generic/aboutdlgg.cpp @@ -147,7 +147,7 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info, wxWindow* paren nameAndVersion << wxT(' ') << info.GetVersion(); wxStaticText *label = new wxStaticText(this, wxID_ANY, nameAndVersion); wxFont fontBig(*wxNORMAL_FONT); - fontBig.SetPointSize(fontBig.GetPointSize() + 2); + fontBig.SetFractionalPointSize(fontBig.GetFractionalPointSize() + 2.0); fontBig.SetWeight(wxFONTWEIGHT_BOLD); label->SetFont(fontBig); diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 6d4fcbd8fa..0b8e439faa 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -2056,7 +2056,7 @@ wxWindow* wxPropertyGrid::GenerateEditorButton( const wxPoint& pos, const wxSize #ifdef __WXGTK__ wxFont font = GetFont(); - font.SetPointSize(font.GetPointSize()-2); + font.SetFractionalPointSize(font.GetFractionalPointSize()-2); but->SetFont(font); #else but->SetFont(GetFont());