Fix the Select All button in the import styles dialog

This commit is contained in:
Thomas Goyne 2014-06-06 08:39:29 -07:00
parent ce358c1367
commit 5e54a342e4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});