From 77873370f34d6c3156f50b5a0f5087d07da5679e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 2 Jul 2011 13:24:48 +1000 Subject: Fix for assertion failure with annotation. Bug #3347268. Protect against setting height of line beyond end of document. --- src/ContractionState.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ContractionState.cxx') 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)) { -- cgit v1.2.3