Don't round the larger or smaller font sizes unnecessarily
Use SetFractionalPointSize() instead of SetPointSize() to avoid losing the fractional part of the font size, if any.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user