From ecf6099ed2c77da3d7abaa06b4cdba98559ee244 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 21 Jan 2008 01:49:06 +0000 Subject: Fixed crash when line states is allocated and line inserted after end of line states. --- src/CellBuffer.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index d404e6463..85bf43552 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -729,6 +729,7 @@ int CellBuffer::LineFromHandle(int markerHandle) { void CellBuffer::InsertLine(int line, int position) { lv.InsertLine(line, position); if (lineStates.Length()) { + lineStates.EnsureLength(line); lineStates.Insert(line, 0); } } -- cgit v1.2.3