]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
deselect the current selection when the user clicks outside of any item
[wxWidgets.git] / src / generic / listctrl.cpp
index fb4924f17e1a15036f11f6a7153c602b46816a75..41beca006a6ace93a1dd1d02126d8ba537819be9 100644 (file)
@@ -2949,7 +2949,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
 
     if ( !hitResult )
     {
 
     if ( !hitResult )
     {
-        // outside of any item
+        // outside of any item, reset the selection and bail out
+        HighlightAll(false);
         return;
     }
 
         return;
     }