From: Vadim Zeitlin Date: Mon, 12 Mar 2001 21:54:39 +0000 (+0000) Subject: patch initializing the multi choice dialog with the selections array values X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e93bfe3c7458d8291626f7e260b6bb4c9f6b276f patch initializing the multi choice dialog with the selections array values git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index c56105fb18..5616efce9e 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -259,6 +259,10 @@ size_t wxGetMultipleChoices(wxArrayInt& selections, int WXUNUSED(width), int WXUNUSED(height)) { wxMultiChoiceDialog dialog(parent, message, caption, n, choices); + + if ( !selections.IsEmpty() ) + dialog.SetSelections(selections); + if ( dialog.ShowModal() == wxID_OK ) selections = dialog.GetSelections(); else