From bc4593ab2fd07b59d3709d36ec951d3fbf0e44ff Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 11 Feb 2002 02:15:56 +0000 Subject: Changes to tighten up styling beyond the bounds of the document. May not be permanent. --- src/Document.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.cxx') 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; } -- cgit v1.2.3