From 5ba813fb7f3dfe6e4b2884cfdbbf5ffac1cdf0da Mon Sep 17 00:00:00 2001 From: maxim Date: Mon, 26 Jun 2017 23:02:36 +0000 Subject: [PATCH] Merged revision(s) 55381 #e6fe4815c6 from trunk: lcl: dbgrids: fix default col widths. Issue #32021 ........ git-svn-id: branches/fixes_1_8@55399 - --- lcl/dbgrids.pas | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lcl/dbgrids.pas b/lcl/dbgrids.pas index 0b41d27d9c..225da5bc33 100644 --- a/lcl/dbgrids.pas +++ b/lcl/dbgrids.pas @@ -1627,10 +1627,7 @@ begin if dgIndicator in Options then ColWidths[0]:=12; if NeedAutoSizeColumns then - UpdateAutoSizeColumns - else - for i:=FirstGridColumn to ColCount-1 do - ColWidths[i] := GetColumnWidth(i); + UpdateAutoSizeColumns; end; end;