]> git.saurik.com Git - wxWidgets.git/commitdiff
deselect the current selection when the user clicks outside of any item
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2006 20:42:54 +0000 (20:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2006 20:42:54 +0000 (20:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index fb4924f17e1a15036f11f6a7153c602b46816a75..41beca006a6ace93a1dd1d02126d8ba537819be9 100644 (file)
@@ -2949,7 +2949,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
 
     if ( !hitResult )
     {
-        // outside of any item
+        // outside of any item, reset the selection and bail out
+        HighlightAll(false);
         return;
     }