X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74491934c65e4e15f91f4434dada4944f05a54b0..02b51ae521db06ef12a3c2a37a5378a9f715e707:/src/generic/listctrl.cpp?ds=inline 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 )