From e93bfe3c7458d8291626f7e260b6bb4c9f6b276f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 Mar 2001 21:54:39 +0000 Subject: [PATCH] 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 --- src/generic/choicdgg.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2