mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:19:50 +02:00
SynEdit: BiDi painting: fixed drawing error in RTL text
git-svn-id: trunk@39115 -
This commit is contained in:
parent
2c9cbd6b0e
commit
f9bc177dfa
@ -1626,6 +1626,7 @@ var
|
|||||||
rcLine.Left := EraseLeft;
|
rcLine.Left := EraseLeft;
|
||||||
InternalFillRect(dc, rcLine);
|
InternalFillRect(dc, rcLine);
|
||||||
rcLine.Left := DrawLeft;
|
rcLine.Left := DrawLeft;
|
||||||
|
LineBufferRtlLogPos := -1;
|
||||||
|
|
||||||
FTokenBreaker.SetHighlighterTokensLine(TV + CurLine, CurTextIndex);
|
FTokenBreaker.SetHighlighterTokensLine(TV + CurLine, CurTextIndex);
|
||||||
CharWidths := FTheLinesView.GetPhysicalCharWidths(CurTextIndex);
|
CharWidths := FTheLinesView.GetPhysicalCharWidths(CurTextIndex);
|
||||||
@ -1706,7 +1707,6 @@ begin
|
|||||||
|
|
||||||
LineBufferLen := 0;
|
LineBufferLen := 0;
|
||||||
LineBuffer := nil;
|
LineBuffer := nil;
|
||||||
LineBufferRtlLogPos := -1;
|
|
||||||
if Assigned(fHighlighter) then begin
|
if Assigned(fHighlighter) then begin
|
||||||
fHighlighter.CurrentLines := FTheLinesView;
|
fHighlighter.CurrentLines := FTheLinesView;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user