]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for GetScrollPos() assert
authorRobert Roebling <robert@roebling.de>
Tue, 27 Jan 2009 15:35:34 +0000 (15:35 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 27 Jan 2009 15:35:34 +0000 (15:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 )