Fix for GetScrollPos() assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2009-01-27 15:35:34 +00:00
parent 74c34d2277
commit e5d28ed426

View 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 )