diff options
Diffstat (limited to 'src/DocumentAccessor.cxx')
| -rw-r--r-- | src/DocumentAccessor.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx index f3c36db32..e764bfeac 100644 --- a/src/DocumentAccessor.cxx +++ b/src/DocumentAccessor.cxx @@ -105,8 +105,9 @@ void DocumentAccessor::StartSegment(unsigned int pos) {  void DocumentAccessor::ColourTo(unsigned int pos, int chAttr) {  	// Only perform styling if non empty range  	if (pos != startSeg - 1) { +		PLATFORM_ASSERT(pos >= startSeg);  		if (pos < startSeg) { -			Platform::DebugPrintf("Bad colour positions %d - %d\n", startSeg, pos); +			return;  		}  		if (validLen + (pos - startSeg + 1) >= bufferSize) | 
