From 5abcbe2bffd4f3fc0300bf16cbc133d64fc70640 Mon Sep 17 00:00:00 2001 From: jesus Date: Sat, 31 May 2008 18:12:04 +0000 Subject: [PATCH] LCL, fixes grid column resizing problem, issue #10732 git-svn-id: trunk@15282 - --- lcl/grids.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/grids.pas b/lcl/grids.pas index cb0dea7775..14ea3dc81f 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -1782,7 +1782,7 @@ begin Bigger := AValue>integer(PtrUInt(FCols[ACol])); SetRawColWidths(ACol, Avalue); - if not (csLoading in ComponentState) then begin + if not (csLoading in ComponentState) and HandleAllocated then begin if FUpdateCount=0 then begin UpdateSizes; @@ -2065,7 +2065,7 @@ begin FRows[ARow]:=Pointer(PtrInt(AValue)); - if not (csLoading in ComponentState) then begin + if not (csLoading in ComponentState) and HandleAllocated then begin if FUpdateCount=0 then begin UpdateSizes;