diff options
author | nyamatongwe <devnull@localhost> | 2007-11-23 02:12:52 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-11-23 02:12:52 +0000 |
commit | a3a7753f0956d8f0cd1947dd38984e01939b97db (patch) | |
tree | 5261e14cdb4e6190cd95e554bd832eb977f6bff9 /src | |
parent | b48de31d9dcdfea131eccf801d57e53a6bf0bc23 (diff) | |
download | scintilla-mirror-a3a7753f0956d8f0cd1947dd38984e01939b97db.tar.gz |
Fixed crash when using line state, the final line has not been given a line
state and is deleted.
Diffstat (limited to 'src')
-rw-r--r-- | src/CellBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |