diff options
author | nyamatongwe <devnull@localhost> | 2012-01-23 18:19:52 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-01-23 18:19:52 +1100 |
commit | 1d39e6b5a83e43721bf601603e76d1c094e6afd5 (patch) | |
tree | bd0122761fe1e7b3d4ba3a7ef90cda27568e2d47 /src | |
parent | 4a7c38fed53a5b733842e6230f683237ca58a8d5 (diff) | |
download | scintilla-mirror-1d39e6b5a83e43721bf601603e76d1c094e6afd5.tar.gz |
Avoid laying out beyond end of document. Bug #3476637.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; line<end; line++) { + for (int line=start; line<end && line<pdoc->LinesTotal(); line++) { int linesWrapped = 1; if (wrapState != eWrapNone) { AutoSurface surface(this); |