Skip to content

Commit

Permalink
[ui] Fix wxWidgets assertion failure in about box
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Mar 4, 2022
1 parent 18b7cda commit 65dd6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/simulator/windows/about/aboutbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ AboutBox::AboutBox(wxWindow* parent) :
textSizer->Add(
Resources::StaticBitmapLoadFromFile(this, wxID_ANY, "images/128x128/antares.png"),
0,
wxALL | wxALIGN_TOP | wxALIGN_CENTER_HORIZONTAL);
wxALL | wxALIGN_TOP);
textSizer->AddSpacer(15);

auto* sv = new wxBoxSizer(wxVERTICAL);
Expand Down Expand Up @@ -1031,7 +1031,7 @@ AboutBox::AboutBox(wxWindow* parent) :
// Close button
{
auto* btn = Component::CreateButton(pPanel, wxT(" Close "), this, &AboutBox::onClose);
pPanelSizer->Add(btn, 0, wxFIXED_MINSIZE | wxALIGN_CENTRE_VERTICAL | wxALL);
pPanelSizer->Add(btn, 0, wxFIXED_MINSIZE | wxALL);
pPanelSizer->Add(5, 2);
btn->SetDefault();
btn->SetFocus();
Expand Down

0 comments on commit 65dd6fa

Please sign in to comment.