From 5a0bfdd77575a7d6b6bf552a65d05b546ad7b522 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Sun, 21 Aug 2022 02:27:13 +0200 Subject: [PATCH] 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. --- src/dialog_selected_choices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialog_selected_choices.cpp b/src/dialog_selected_choices.cpp index b5b3acc21..d0de5333f 100644 --- a/src/dialog_selected_choices.cpp +++ b/src/dialog_selected_choices.cpp @@ -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());