]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
better docs for wxDataViewColumn
[wxWidgets.git] / src / generic / listctrl.cpp
index fcd427441b676230cd79d352229a8f5594246e8d..4d861ceb277663bec31ca1332f91d4bfb1b574ef 100644 (file)
@@ -4216,7 +4216,7 @@ void wxListMainWindow::GetVisibleLinesRange(size_t *from, size_t *to)
         size_t count = GetItemCount();
         if ( count )
         {
-            m_lineFrom = GetScrollPos(wxVERTICAL);
+            m_lineFrom = GetListCtrl()->GetScrollPos(wxVERTICAL);
 
             // this may happen if SetScrollbars() hadn't been called yet
             if ( m_lineFrom >= count )