]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
removed useless assert from wxArray::Alloc
[wxWidgets.git] / 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);
                             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
     if ( dialog.ShowModal() == wxID_OK )
         selections = dialog.GetSelections();
     else