SynEdit: Fix painting wrong color (introduced in rev 38964 #55a09f4952

git-svn-id: trunk@38969 -
This commit is contained in:
martin 2012-10-05 09:03:12 +00:00
parent 7874a19bd8
commit 6ba263edec

View File

@ -594,13 +594,13 @@ begin
if FCurViewToken.Tk.TokenLength = 0 then if FCurViewToken.Tk.TokenLength = 0 then
ATokenInfo.Attr.EndX := PhysPos-1; ATokenInfo.Attr.EndX := PhysPos-1;
MaybeFetchToken; //MaybeFetchToken;
if MaybeChangeToRtl(LogicIdx, LogicEnd) then begin // get NextTokenPhysStart //if MaybeChangeToRtl(LogicIdx, LogicEnd) then begin // get NextTokenPhysStart
SkipRtlOffScreen(LogicIdx, LogicEnd); // SkipRtlOffScreen(LogicIdx, LogicEnd);
while FCurViewToken.Tk.TokenLength = 0 do // while FCurViewToken.Tk.TokenLength = 0 do
if MaybeFetchToken then // if MaybeFetchToken then
SkipRtlOffScreen(LogicIdx, LogicEnd); // SkipRtlOffScreen(LogicIdx, LogicEnd);
end; //end;
ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart; ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart;
ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart; ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart;
@ -692,12 +692,12 @@ begin
if FCurViewToken.Tk.TokenLength = 0 then if FCurViewToken.Tk.TokenLength = 0 then
ATokenInfo.Attr.EndX := PhysPos-1; ATokenInfo.Attr.EndX := PhysPos-1;
MaybeFetchToken; //MaybeFetchToken;
SkipRtlOffScreen(LogicIdx, LogicEnd); //SkipRtlOffScreen(LogicIdx, LogicEnd);
while FCurViewToken.Tk.TokenLength = 0 do //while FCurViewToken.Tk.TokenLength = 0 do
if MaybeFetchToken then // if MaybeFetchToken then
SkipRtlOffScreen(LogicIdx, LogicEnd); // SkipRtlOffScreen(LogicIdx, LogicEnd);
MaybeChangeToLtr(LogicIdx, LogicEnd); // get NextTokenPhysStart //MaybeChangeToLtr(LogicIdx, LogicEnd); // get NextTokenPhysStart
ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart; ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart;
ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart; ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart;