SynEdit: Improve painting. Issue #0022926. (Do not scan into next token)

git-svn-id: trunk@38830 -
This commit is contained in:
martin 2012-09-25 22:50:32 +00:00
parent 7eacd9d711
commit afde8b8111

View File

@ -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');