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:
parent
74c34d2277
commit
e5d28ed426
@ -4216,7 +4216,7 @@ void wxListMainWindow::GetVisibleLinesRange(size_t *from, size_t *to)
|
|||||||
size_t count = GetItemCount();
|
size_t count = GetItemCount();
|
||||||
if ( count )
|
if ( count )
|
||||||
{
|
{
|
||||||
m_lineFrom = GetScrollPos(wxVERTICAL);
|
m_lineFrom = GetListCtrl()->GetScrollPos(wxVERTICAL);
|
||||||
|
|
||||||
// this may happen if SetScrollbars() hadn't been called yet
|
// this may happen if SetScrollbars() hadn't been called yet
|
||||||
if ( m_lineFrom >= count )
|
if ( m_lineFrom >= count )
|
||||||
|
Loading…
Reference in New Issue
Block a user