From e9fdda86380a48906dbc1aa7c2fc349019b79eaf Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 16 Jun 2016 07:23:34 -0700 Subject: [PATCH] Avoid clearing selection for mouse button up event which is not over an item, see #17547 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 1699d58ac8..5c7bb48a71 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2457,7 +2457,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) evtCtx.SetEventObject(GetParent()); GetParent()->GetEventHandler()->ProcessEvent(evtCtx); } - else + else if (event.LeftDown()) { // reset the selection and bail out HighlightAll(false);