aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-07-02 13:24:48 +1000
committernyamatongwe <devnull@localhost>2011-07-02 13:24:48 +1000
commit77873370f34d6c3156f50b5a0f5087d07da5679e (patch)
treef1ae1361a4c9ff06207f0ab341572f29064e4b6b /src
parente90a07365002866df7d107a078c178334cf2dd46 (diff)
downloadscintilla-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')
-rw-r--r--src/ContractionState.cxx2
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)) {