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:
@@ -2665,9 +2665,11 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
|||||||
{
|
{
|
||||||
// TODO: optimize it too! this is less simple than for report view but
|
// TODO: optimize it too! this is less simple than for report view but
|
||||||
// enumerating all items is still not a way to do it!!
|
// 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);
|
hitResult = HitTestLine(current, x, y);
|
||||||
|
if ( hitResult )
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user