mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-07 04:10:59 +01:00
LCL: Fix StringGrid DrawCell RTL (Bidi). Issue #28867, patch from Zaher Dirkey.
git-svn-id: trunk@50187 -
This commit is contained in:
parent
030f238cbd
commit
8b83841913
@ -3599,7 +3599,10 @@ begin
|
||||
CurrentTextStyle.SingleLine := (gc = nil) or (not gc.Title.MultiLine);
|
||||
Canvas.TextStyle := CurrentTextStyle;
|
||||
end else begin
|
||||
Canvas.TextStyle := DefaultTextStyle;
|
||||
CurrentTextStyle := DefaultTextStyle;
|
||||
CurrentTextStyle.Alignment := BidiFlipAlignment(CurrentTextStyle.Alignment, UseRightToLeftAlignment);
|
||||
CurrentTextStyle.RightToLeft := UseRightToLeftAlignment;
|
||||
Canvas.TextStyle := CurrentTextStyle;
|
||||
Canvas.Brush.Color := clWindow;
|
||||
Canvas.Font.Color := clWindowText;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user