SynEdit: BiDi painting: fixed drawing error in RTL text

git-svn-id: trunk@39115 -
This commit is contained in:
martin 2012-10-17 18:38:56 +00:00
parent 2c9cbd6b0e
commit f9bc177dfa

View File

@ -1626,6 +1626,7 @@ var
rcLine.Left := EraseLeft;
InternalFillRect(dc, rcLine);
rcLine.Left := DrawLeft;
LineBufferRtlLogPos := -1;
FTokenBreaker.SetHighlighterTokensLine(TV + CurLine, CurTextIndex);
CharWidths := FTheLinesView.GetPhysicalCharWidths(CurTextIndex);
@ -1706,7 +1707,6 @@ begin
LineBufferLen := 0;
LineBuffer := nil;
LineBufferRtlLogPos := -1;
if Assigned(fHighlighter) then begin
fHighlighter.CurrentLines := FTheLinesView;
end;