From 9da89d31006d8a682fe869cb34d5c00a82879abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 9 Aug 2004 17:10:18 +0000 Subject: [PATCH] We need one float argument to perform floating point division. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 6e989ae648..ee4d53272e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4299,7 +4299,7 @@ long wxListMainWindow::FindItem( const wxPoint& pt ) 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;