lcl: grids: fix Wrong Alignment in TCustomGrid for Editor. Issue #29243, patch by Michl

git-svn-id: trunk@51092 -
This commit is contained in:
ondrej 2015-12-31 09:47:35 +00:00
parent 59e349c1ae
commit 0246f8c565

View File

@ -6640,8 +6640,8 @@ begin
Editor.Parent:=Self;
if FEditor=FStringEditor then
begin
if FCol<Columns.Count then
FStringEditor.Alignment:=Columns[FCol].Alignment
if FCol-FFixedCols<Columns.Count then
FStringEditor.Alignment:=Columns[FCol-FFixedCols].Alignment
else
FStringEditor.Alignment:=taLeftJustify;
end;