From a72ff058168403b9145beeb4e3e322a47f07895c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 23 Nov 2007 02:12:52 +0000 Subject: Fixed crash when using line state, the final line has not been given a line state and is deleted. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 6d04e04c9..d404e6463 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -735,7 +735,7 @@ void CellBuffer::InsertLine(int line, int position) { void CellBuffer::RemoveLine(int line) { lv.RemoveLine(line); - if (lineStates.Length()) { + if (lineStates.Length() > line) { lineStates.Delete(line); } } -- cgit v1.2.3