Fix the Select All button in the import styles dialog
This commit is contained in:
parent
ce358c1367
commit
5e54a342e4
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ int GetSelectedChoices(wxWindow *parent, wxArrayInt& selections, wxString const&
|
|||
|
||||
auto selAll = new wxButton(&dialog, -1, _("Select &All"));
|
||||
selAll->Bind(wxEVT_BUTTON, [&](wxCommandEvent&) {
|
||||
wxArrayInt sel(selections.size());
|
||||
wxArrayInt sel(choices.size(), 0);
|
||||
std::iota(sel.begin(), sel.end(), 0);
|
||||
dialog.SetSelections(sel);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue