From e5d28ed426b267025cdd95237c95fc66db4f1b94 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 27 Jan 2009 15:35:34 +0000 Subject: [PATCH] Fix for GetScrollPos() assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )