fix for incorrect assert in GetVisibleLinesRange
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4049,7 +4049,8 @@ void wxListMainWindow::GetVisibleLinesRange(size_t *from, size_t *to)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxASSERT_MSG( m_lineFrom <= m_lineTo && m_lineTo < GetItemCount(),
|
wxASSERT_MSG( IsEmpty() ||
|
||||||
|
(m_lineFrom <= m_lineTo && m_lineTo < GetItemCount()),
|
||||||
_T("GetVisibleLinesRange() returns incorrect result") );
|
_T("GetVisibleLinesRange() returns incorrect result") );
|
||||||
|
|
||||||
if ( from )
|
if ( from )
|
||||||
|
Reference in New Issue
Block a user