From: Robert Roebling Date: Tue, 27 Jan 2009 15:35:34 +0000 (+0000) Subject: Fix for GetScrollPos() assert X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e5d28ed426b267025cdd95237c95fc66db4f1b94 Fix for GetScrollPos() assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index fcd427441b..4d861ceb27 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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 )