diff options
author | nyamatongwe <unknown> | 2011-07-02 13:24:48 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-07-02 13:24:48 +1000 |
commit | 55041945468cd75dcf4e9c8fab36782200a54ceb (patch) | |
tree | e51521b1fdeca69f60ec3a86570e21181580c379 /src | |
parent | 2bc89dd6623f9a8cb5c5a175e0c9fa7a7ff04a80 (diff) | |
download | scintilla-mirror-55041945468cd75dcf4e9c8fab36782200a54ceb.tar.gz |
Fix for assertion failure with annotation. Bug #3347268.
Protect against setting height of line beyond end of document.
Diffstat (limited to 'src')
-rw-r--r-- | src/ContractionState.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 4478f3844..6a0069732 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -231,7 +231,7 @@ int ContractionState::GetHeight(int lineDoc) const { bool ContractionState::SetHeight(int lineDoc, int height) { if (OneToOne() && (height == 1)) { return false; - } else { + } else if (lineDoc < LinesInDoc()) { EnsureData(); if (GetHeight(lineDoc) != height) { if (GetVisible(lineDoc)) { |