diff options
author | nyamatongwe <unknown> | 2001-06-01 06:26:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-06-01 06:26:11 +0000 |
commit | 11b107d831a9d9fddb3544fbe42439415eea00e9 (patch) | |
tree | 062e41cdcfb4b14daed708db4ecd9d136fde81b6 /src/ScintillaBase.cxx | |
parent | 579d7cae6b2e893ee675087666ad51c8fe5f9187 (diff) | |
download | scintilla-mirror-11b107d831a9d9fddb3544fbe42439415eea00e9.tar.gz |
Some assertions from Mark.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index db8040340..707f59b9f 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -362,6 +362,9 @@ void ScintillaBase::Colourise(int start, int end) { end = lengthDoc; int len = end - start; + PLATFORM_ASSERT(len >= 0); + PLATFORM_ASSERT(start + len <= lengthDoc); + //WindowAccessor styler(wMain.GetID(), props); DocumentAccessor styler(pdoc, props, wMain.GetID()); |