Fix assert failure when splitting the view when there are tabs with no history or a very short history.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=753519
This commit is contained in:
Robert Knight
2007-12-27 18:22:59 +00:00
parent 1a08d3d0b7
commit 38f170c448

View File

@@ -281,7 +281,7 @@ void ScreenWindow::notifyOutputChanged()
if ( _trackOutput )
{
_scrollCount -= _screen->scrolledLines();
_currentLine = _screen->getHistLines() - (windowLines()-_screen->getLines());
_currentLine = qMax(0,_screen->getHistLines() - (windowLines()-_screen->getLines()));
}
else
{