diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index 1b346e8077..f0c58c61b8 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -222,7 +222,7 @@ void wxVScrolledWindow::RefreshLines(size_t from, size_t to) rect.y += OnGetLineHeight(nBefore); } - for ( size_t nBetween = from; nBetween < to; nBetween++ ) + for ( size_t nBetween = from; nBetween <= to; nBetween++ ) { rect.height += OnGetLineHeight(nBetween); }