Prevents deleting the last line when resizing.

This commit is contained in:
Filippo Scognamiglio
2014-11-06 02:08:18 +01:00
parent a8aad8edf6
commit b01f7a186e
+1 -1
View File
@@ -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<new_lines+1);i++)
newScreenLines[i].resize( new_columns );