]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
fixed build
[wxWidgets.git] / src / generic / vlbox.cpp
index 86501ead577034d4827e9063200a250793c4b7ef..938b9d331c76d8780cd5e28d81b18bdbf8f920f3 100644 (file)
@@ -249,8 +249,11 @@ void wxVListBox::SetSelection(int selection)
                   (selection >= 0 && (size_t)selection < GetItemCount()),
                   _T("wxVListBox::SetSelection(): invalid item index") );
 
-    wxASSERT_MSG( !HasMultipleSelection(),
-                  _T("SetSelection() is invalid with multiselection listbox") );
+    if ( HasMultipleSelection() )
+    {
+        Select(selection);
+        m_anchor = selection;
+    }
 
     DoSetCurrent(selection);
 }