From 38f170c4486e24a6dab31febea7a10fa5ad4c7a4 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Thu, 27 Dec 2007 18:22:59 +0000 Subject: [PATCH] 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 --- src/ScreenWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScreenWindow.cpp b/src/ScreenWindow.cpp index 1cb6b82fa..4da342384 100644 --- a/src/ScreenWindow.cpp +++ b/src/ScreenWindow.cpp @@ -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 {