Fix another possible index-out-of-bounds when inserting characters. Fix terminal display image buffer overflow when rendering double-height lines.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709594
This commit is contained in:
Robert Knight
2007-09-07 21:50:13 +00:00
parent c82e1ee2e0
commit f93d2ea70d
2 changed files with 4 additions and 1 deletions

View File

@@ -307,6 +307,9 @@ void Screen::insertChars(int n)
{
if (n == 0) n = 1; // Default
if ( screenLines[cuY].size() < cuX )
screenLines[cuY].resize(cuX);
screenLines[cuY].insert(cuX,n,' ');
if ( screenLines[cuY].count() > columns )