From ca3ef60d6da099f46969eaebcdbfaf3b20761505 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Thu, 22 Sep 2011 01:35:14 +0800 Subject: [PATCH] Fix the problem of possibly losing the last line after resizing window. This is a simple one-line patch, so it can be reverted easily if unfortunately needed. BUG:192221 FIXED-IN:4.8 REVIEW:102177 --- src/Screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screen.cpp b/src/Screen.cpp index 83d24ea6b..3420ee72b 100644 --- a/src/Screen.cpp +++ b/src/Screen.cpp @@ -307,7 +307,7 @@ void Screen::resizeImage(int new_lines, int new_columns) // create new screen lines and copy from old to new ImageLine* newScreenLines = new ImageLine[new_lines+1]; - for (int i=0; i < qMin(lines-1,new_lines+1) ;i++) + for (int i=0; i < qMin(lines,new_lines+1) ;i++) newScreenLines[i]=screenLines[i]; for (int i=lines;(i > 0) && (i