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

This commit is contained in:
Paul Cornett 2016-06-16 07:23:34 -07:00
parent 3c4e29e0da
commit e9fdda8638

View File

@ -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);