forked from mia/Aegisub
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:
parent
b697ad6ca0
commit
5a0bfdd775
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue