From 9a6a4f6d5799f9cf0ed240b23f3422ad73623971 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Mar 2006 20:42:54 +0000 Subject: [PATCH] deselect the current selection when the user clicks outside of any item git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index fb4924f17e..41beca006a 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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; } -- 2.45.2