fixed off by 1 bug in SelectRange()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-06-13 13:29:52 +00:00
parent 5f73281084
commit 33a037495e

View File

@ -222,7 +222,7 @@ void wxVScrolledWindow::RefreshLines(size_t from, size_t to)
rect.y += OnGetLineHeight(nBefore); rect.y += OnGetLineHeight(nBefore);
} }
for ( size_t nBetween = from; nBetween < to; nBetween++ ) for ( size_t nBetween = from; nBetween <= to; nBetween++ )
{ {
rect.height += OnGetLineHeight(nBetween); rect.height += OnGetLineHeight(nBetween);
} }