diff options
author | nyamatongwe <unknown> | 2002-02-11 02:15:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-11 02:15:56 +0000 |
commit | 059b5ea7391a9879a96921b256a185165e8ab2db (patch) | |
tree | 8fccbc9b0127de0aa755ebbef0a78b4ca1609bad /src/Document.cxx | |
parent | 537e81b993a0118c5c51018f5697ae4f5c1cc3bc (diff) | |
download | scintilla-mirror-059b5ea7391a9879a96921b256a185165e8ab2db.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; } |