]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
wxDFB: use Unix event loop and timers (fixes #10408)
[wxWidgets.git] / 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() )
     {