Avoid clearing selection for mouse button up event which is not over an item, see #17547

(cherry picked from commit e9fdda8638)
This commit is contained in:
Paul Cornett
2016-06-16 07:23:34 -07:00
parent 6c6522736d
commit 722ff6a210

View File

@@ -2441,7 +2441,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);