Remove unnecessary flags in SelectedChoices dialog

These alignment flags would cause an assertion error
"Horizontal alignment flags are ignored in horizontal sizers"
when opening the dialog (mainly when importing styles from another
script).
As the assertion error says, the flags are ignored anyway, so they're
safe to remove.
This commit is contained in:
arch1t3cht 2022-08-21 02:27:13 +02:00
parent b697ad6ca0
commit 5a0bfdd775

View file

@ -34,8 +34,8 @@ int GetSelectedChoices(wxWindow *parent, wxArrayInt& selections, wxString const&
selNone->Bind(wxEVT_BUTTON, [&](wxCommandEvent&) { dialog.SetSelections(wxArrayInt()); });
auto buttonSizer = new wxBoxSizer(wxHORIZONTAL);
buttonSizer->Add(selAll, wxSizerFlags(0).Left());
buttonSizer->Add(selNone, wxSizerFlags(0).Right());
buttonSizer->Add(selAll);
buttonSizer->Add(selNone);
auto sizer = dialog.GetSizer();
sizer->Insert(2, buttonSizer, wxSizerFlags(0).Center());