diff options
author | nyamatongwe <devnull@localhost> | 2011-07-02 13:24:48 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-02 13:24:48 +1000 |
commit | 77873370f34d6c3156f50b5a0f5087d07da5679e (patch) | |
tree | f1ae1361a4c9ff06207f0ab341572f29064e4b6b /src/ContractionState.cxx | |
parent | e90a07365002866df7d107a078c178334cf2dd46 (diff) | |
download | scintilla-mirror-77873370f34d6c3156f50b5a0f5087d07da5679e.tar.gz |
Fix for assertion failure with annotation. Bug #3347268.
Protect against setting height of line beyond end of document.
Diffstat (limited to 'src/ContractionState.cxx')
-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)) { |