X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b41ec29ad21fe56a82f22a586ca4b81431e600d8..19ff2a7bd5b0c567a8fa306d9021bc344e6fbe9b:/src/generic/choicdgg.cpp diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index 99d5079b4f..c56105fb18 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -81,9 +81,10 @@ int ConvertWXArrayToC(const wxArrayString& aChoices, wxString **choices) { int n = aChoices.GetCount(); *choices = new wxString[n]; + for ( int i = 0; i < n; i++ ) { - *choices[i] = aChoices[i]; + (*choices)[i] = aChoices[i]; } return n;