Fix wx font bug
Labels don't size correctly with large font
This commit is contained in:
parent
950d2458c0
commit
3b4e6dc1fa
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue