diff options
author | nyamatongwe <unknown> | 2008-01-21 01:49:06 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2008-01-21 01:49:06 +0000 |
commit | 8a5cc90202b95f63cb131ceea0db72571e3f7cde (patch) | |
tree | 5d0fdbc55e0ff897ee632486c9f7a6cdb33f2685 /src/CellBuffer.cxx | |
parent | a081db882e05bffa8bde512d0db99fb765517c90 (diff) | |
download | scintilla-mirror-8a5cc90202b95f63cb131ceea0db72571e3f7cde.tar.gz |
Fixed crash when line states is allocated and line inserted after end of
line states.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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); } } |