From: Vadim Zeitlin Date: Wed, 11 Jul 2001 12:10:49 +0000 (+0000) Subject: fixed hit testing for non report modes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4e3ace65957535039c22998893a3e0b159adbdd2 fixed hit testing for non report modes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index a306732993..4a94a65b79 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2665,9 +2665,11 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) { // TODO: optimize it too! this is less simple than for report view but // enumerating all items is still not a way to do it!! - for ( current = 0; current < count && !hitResult; current++ ) + for ( current = 0; current < count; current++ ) { hitResult = HitTestLine(current, x, y); + if ( hitResult ) + break; } }