From 5e54a342e4ba7b8e6afc18e690fe3c89a904ec45 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 6 Jun 2014 08:39:29 -0700 Subject: [PATCH] Fix the Select All button in the import styles dialog --- src/dialog_selected_choices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog_selected_choices.cpp b/src/dialog_selected_choices.cpp index e0fd0488c..b5b3acc21 100644 --- a/src/dialog_selected_choices.cpp +++ b/src/dialog_selected_choices.cpp @@ -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); });