From 950d2458c05a57b8b35b661045e7f83667fb874b Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Fri, 15 Jan 2016 21:07:35 -0500 Subject: [PATCH] Fix label sizing in hotkey query dialog --- common/widgets/widget_hotkey_list.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/widgets/widget_hotkey_list.cpp b/common/widgets/widget_hotkey_list.cpp index a188968146..5afd217231 100644 --- a/common/widgets/widget_hotkey_list.cpp +++ b/common/widgets/widget_hotkey_list.cpp @@ -116,15 +116,17 @@ public: wxStaticText* cmd_label_0 = new wxStaticText( panel, wxID_ANY, _( "Command:" ) ); fgsizer->Add( cmd_label_0, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); - wxStaticText* cmd_label_1 = new wxStaticText( panel, wxID_ANY, aName ); + wxStaticText* cmd_label_1 = new wxStaticText( panel, wxID_ANY, wxEmptyString ); cmd_label_1->SetFont( cmd_label_1->GetFont().Bold().MakeLarger() ); + cmd_label_1->SetLabel( aName ); fgsizer->Add( cmd_label_1, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); wxStaticText* key_label_0 = new wxStaticText( panel, wxID_ANY, _( "Current key:" ) ); fgsizer->Add( key_label_0, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); - wxStaticText* key_label_1 = new wxStaticText( panel, wxID_ANY, aCurrentKey ); + wxStaticText* key_label_1 = new wxStaticText( panel, wxID_ANY, wxEmptyString ); key_label_1->SetFont( key_label_1->GetFont().Bold().MakeLarger() ); + key_label_1->SetLabel( aCurrentKey ); fgsizer->Add( key_label_1, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5 ); sizer->Add( fgsizer, 1, wxEXPAND );