aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-11-23 02:12:52 +0000
committernyamatongwe <devnull@localhost>2007-11-23 02:12:52 +0000
commita3a7753f0956d8f0cd1947dd38984e01939b97db (patch)
tree5261e14cdb4e6190cd95e554bd832eb977f6bff9
parentb48de31d9dcdfea131eccf801d57e53a6bf0bc23 (diff)
downloadscintilla-mirror-a3a7753f0956d8f0cd1947dd38984e01939b97db.tar.gz
Fixed crash when using line state, the final line has not been given a line
state and is deleted.
-rw-r--r--src/CellBuffer.cxx2
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);
}
}