compilation fix for a patch which didn't compile...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4290,17 +4290,18 @@ long wxListMainWindow::FindItem(long start, long data)
|
||||
|
||||
long wxListMainWindow::FindItem( const wxPoint& pt )
|
||||
{
|
||||
wxPoint p;
|
||||
long topItem = GetTopItem();
|
||||
size_t topItem;
|
||||
GetVisibleLinesRange(&topItem, NULL);
|
||||
|
||||
GetItemPosition( GetItemCount()-1, p );
|
||||
if( p.y == 0 )
|
||||
return topItem;
|
||||
long id = (long) floor( pt.y*(GetItemCount()-topItem-1)/p.y+topItem );
|
||||
if( id >= 0 && id < (long)GetItemCount() )
|
||||
return id;
|
||||
wxPoint p;
|
||||
GetItemPosition( GetItemCount()-1, p );
|
||||
if( p.y == 0 )
|
||||
return topItem;
|
||||
long id = (long) floor( pt.y*(GetItemCount()-topItem-1)/p.y+topItem );
|
||||
if( id >= 0 && id < (long)GetItemCount() )
|
||||
return id;
|
||||
|
||||
return wxNOT_FOUND;
|
||||
return wxNOT_FOUND;
|
||||
}
|
||||
|
||||
long wxListMainWindow::HitTest( int x, int y, int &flags )
|
||||
|
Reference in New Issue
Block a user