RxFPC:fix show collumn width in RxDBGrid columns form

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7617 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2020-08-18 08:48:23 +00:00
parent 94f88fbfcf
commit 64f6cdb82e

View File

@@ -199,10 +199,10 @@ begin
StringGrid1.Cells[0, i + 1]:=BoolToStr(C.Visible, '1', '0'); StringGrid1.Cells[0, i + 1]:=BoolToStr(C.Visible, '1', '0');
StringGrid1.Cells[1, i + 1]:=C.Title.Caption; StringGrid1.Cells[1, i + 1]:=C.Title.Caption;
if C.Width = 0 then if C.StoredWidth = 0 then
StringGrid1.Cells[2, i + 1]:=IntToStr(AGrid.DefaultColWidth) StringGrid1.Cells[2, i + 1]:=IntToStr(AGrid.DefaultColWidth)
else else
StringGrid1.Cells[2, i + 1]:=IntToStr(C.Width); StringGrid1.Cells[2, i + 1]:=IntToStr(C.StoredWidth);
end; end;
end end
else else