git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28726
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GetItemPosition( GetItemCount()-1, p );
if( p.y == 0 )
return topItem;
GetItemPosition( GetItemCount()-1, p );
if( p.y == 0 )
return topItem;
- long id = (long) floor( pt.y*(GetItemCount()-topItem-1)/p.y+topItem );
+ long id = (long) floor( pt.y*double(GetItemCount()-topItem-1)/p.y+topItem );
if( id >= 0 && id < (long)GetItemCount() )
return id;
if( id >= 0 && id < (long)GetItemCount() )
return id;