From 3b4e6dc1fa7ebfde8bbae13e637ffbf0674e3ac0 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Fri, 15 Jan 2016 21:07:42 -0500 Subject: [PATCH] Fix wx font bug Labels don't size correctly with large font --- common/widgets/widget_hotkey_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/widgets/widget_hotkey_list.cpp b/common/widgets/widget_hotkey_list.cpp index 5afd217231..381367020d 100644 --- a/common/widgets/widget_hotkey_list.cpp +++ b/common/widgets/widget_hotkey_list.cpp @@ -117,7 +117,7 @@ public: fgsizer->Add( cmd_label_0, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); wxStaticText* cmd_label_1 = new wxStaticText( panel, wxID_ANY, wxEmptyString ); - cmd_label_1->SetFont( cmd_label_1->GetFont().Bold().MakeLarger() ); + cmd_label_1->SetFont( cmd_label_1->GetFont().Bold() ); cmd_label_1->SetLabel( aName ); fgsizer->Add( cmd_label_1, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); @@ -125,7 +125,7 @@ public: fgsizer->Add( key_label_0, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); wxStaticText* key_label_1 = new wxStaticText( panel, wxID_ANY, wxEmptyString ); - key_label_1->SetFont( key_label_1->GetFont().Bold().MakeLarger() ); + key_label_1->SetFont( key_label_1->GetFont().Bold() ); key_label_1->SetLabel( aCurrentKey ); fgsizer->Add( key_label_1, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 );