]> git.saurik.com Git - wxWidgets.git/commitdiff
argh, another for GetVisibleLinesRange
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Jul 2001 12:50:40 +0000 (12:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Jul 2001 12:50:40 +0000 (12:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 8c9f8439092b0986a68f6ec6277e610126b5251b..67473428566bd525ad84833185c2cab73b2f5428 100644 (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