fixed hit testing for non report modes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-11 12:10:49 +00:00
parent 0cbff1201a
commit 4e3ace6595

View File

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