From 7f3192f972e834d9cbfdde86a84bcabf56d1e291 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 23 Jan 2012 18:19:52 +1100 Subject: Avoid laying out beyond end of document. Bug #3476637. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 4fce8bb2d..1e7df0320 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6701,7 +6701,7 @@ void Editor::SetBraceHighlight(Position pos0, Position pos1, int matchStyle) { void Editor::SetAnnotationHeights(int start, int end) { if (vs.annotationVisible) { bool changedHeight = false; - for (int line=start; lineLinesTotal(); line++) { int linesWrapped = 1; if (wrapState != eWrapNone) { AutoSurface surface(this); -- cgit v1.2.3