]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
use wxSTRINGIZE instead of redefining a special STRINGIZE in this file
[wxWidgets.git] / src / generic / vlbox.cpp
index 0195b3e4c073509dee66e0bf027aef12609233e2..7cdf248b6a21ef596425b6fdfb9d31156b87271d 100644 (file)
@@ -264,7 +264,10 @@ void wxVListBox::SetSelection(int selection)
 
     if ( HasMultipleSelection() )
     {
 
     if ( HasMultipleSelection() )
     {
-        Select(selection);
+        if (selection != wxNOT_FOUND)
+            Select(selection);
+        else
+            DeselectAll();
         m_anchor = selection;
     }
 
         m_anchor = selection;
     }