Fixes #10443: wxListCtrl::MoveToItem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2577,8 +2577,8 @@ void wxListMainWindow::MoveToItem(size_t item)
|
||||
|
||||
const int hLine = GetLineHeight();
|
||||
|
||||
int view_x = SCROLL_UNIT_X * GetScrollPos( wxHORIZONTAL );
|
||||
int view_y = hLine * GetScrollPos( wxVERTICAL );
|
||||
int view_x = SCROLL_UNIT_X * GetListCtrl()->GetScrollPos( wxHORIZONTAL );
|
||||
int view_y = hLine * GetListCtrl()->GetScrollPos( wxVERTICAL );
|
||||
|
||||
if ( InReportView() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user