]> git.saurik.com Git - wxWidgets.git/commitdiff
patch initializing the multi choice dialog with the selections array values
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Mar 2001 21:54:39 +0000 (21:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Mar 2001 21:54:39 +0000 (21:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index c56105fb18b1ef0e1f4c410b2a97339f6dd3c17b..5616efce9e39b68fbf1e59bf49bc5875b805e6ea 100644 (file)
@@ -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