argh, another for GetVisibleLinesRange

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-10 12:50:40 +00:00
parent ae167d2ffb
commit bcc0da5ce3

View File

@@ -4034,7 +4034,7 @@ void wxListMainWindow::GetVisibleLinesRange(size_t *from, size_t *to)
// this may happen if SetScrollbars() hadn't been called yet
if ( m_lineFrom >= count )
m_lineFrom = count;
m_lineFrom = count - 1;
// we redraw one extra line but this is needed to make the redrawing
// logic work when there is a fractional number of lines on screen