X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b7df27e4cf3d41c4fb4e2805462be1821989da5..9a6a4f6d5799f9cf0ed240b23f3422ad73623971:/src/generic/listctrl.cpp 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; }