From afde8b8111ec3d0d4d1f1b9789e6829f7f101e7d Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 25 Sep 2012 22:50:32 +0000 Subject: [PATCH] SynEdit: Improve painting. Issue #0022926. (Do not scan into next token) git-svn-id: trunk@38830 - --- components/synedit/lazsyntextarea.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/synedit/lazsyntextarea.pp b/components/synedit/lazsyntextarea.pp index fd8eb265a8..d4de236942 100644 --- a/components/synedit/lazsyntextarea.pp +++ b/components/synedit/lazsyntextarea.pp @@ -395,7 +395,7 @@ begin repeat inc(LogicIdx); inc(i); - until (LogicIdx >= CharWidthsLen) or ((FCharWidths[LogicIdx] and PCWMask) <> 0); + until (LogicIdx >= CharWidthsLen) or (LogicIdx >= LogicEnd) or ((FCharWidths[LogicIdx] and PCWMask) <> 0); end; Assert(PhysPos > FCurViewToken.PhysicalStart, 'PhysPos > FCurViewToken.PhysicalStart');