From ae167d2ffb1721aca2210de2762e3bfc6bf892af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Jul 2001 12:47:38 +0000 Subject: [PATCH] fix for incorrect assert in GetVisibleLinesRange git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 8ccd9c7798..8c9f843909 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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") ); if ( from ) -- 2.47.2