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:
Robert Roebling
2009-01-28 10:24:14 +00:00
parent 79f9ea0541
commit edea2c4af5

View File

@@ -2577,8 +2577,8 @@ void wxListMainWindow::MoveToItem(size_t item)
const int hLine = GetLineHeight(); const int hLine = GetLineHeight();
int view_x = SCROLL_UNIT_X * GetScrollPos( wxHORIZONTAL ); int view_x = SCROLL_UNIT_X * GetListCtrl()->GetScrollPos( wxHORIZONTAL );
int view_y = hLine * GetScrollPos( wxVERTICAL ); int view_y = hLine * GetListCtrl()->GetScrollPos( wxVERTICAL );
if ( InReportView() ) if ( InReportView() )
{ {