diff options
author | nyamatongwe <devnull@localhost> | 2002-02-11 02:15:56 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-02-11 02:15:56 +0000 |
commit | bc4593ab2fd07b59d3709d36ec951d3fbf0e44ff (patch) | |
tree | 8fccbc9b0127de0aa755ebbef0a78b4ca1609bad /src/Document.cxx | |
parent | 58a3f8eee17d6d083c09822ea83719980fbb2b3e (diff) | |
download | scintilla-mirror-bc4593ab2fd07b59d3709d36ec951d3fbf0e44ff.tar.gz |
Changes to tighten up styling beyond the bounds of the document.
May not be permanent.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 4bc7c05a2..8b40806f3 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1100,6 +1100,7 @@ void Document::SetStyles(int length, char *styles) { int prevEndStyled = endStyled; bool didChange = false; for (int iPos = 0; iPos < length; iPos++, endStyled++) { + PLATFORM_ASSERT(endStyled < Length()); if (cb.SetStyleAt(endStyled, styles[iPos], stylingMask)) { didChange = true; } |