]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes #10443: wxListCtrl::MoveToItem
authorRobert Roebling <robert@roebling.de>
Wed, 28 Jan 2009 10:24:14 +0000 (10:24 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 28 Jan 2009 10:24:14 +0000 (10:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 4d861ceb277663bec31ca1332f91d4bfb1b574ef..f8dc54fc71381796c2c4ca00ac66ad3f373d8395 100644 (file)
@@ -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() )
     {