LCL: Fix StringGrid DrawCell RTL (Bidi). Issue #28867, patch from Zaher Dirkey.

git-svn-id: trunk@50187 -
This commit is contained in:
juha 2015-10-27 22:16:21 +00:00
parent 030f238cbd
commit 8b83841913

View File

@ -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;