SynEdit: Improve non utf8 char-set handling (may happen with gtk1). This was broken by DoubleWidthChar handling

git-svn-id: trunk@18669 -
This commit is contained in:
martin 2009-02-13 20:10:39 +00:00
parent 02251dc4d6
commit 84bfb63537

View File

@ -54,6 +54,9 @@ var
i: Integer;
begin
Result := inherited GetPhysicalCharWidths(Line, Index);
if not IsUtf8 then
exit;
for i := 0 to length(Line) -1 do begin
if Result[i] = 0 then continue;
case Line[i+1] of