diff --git a/lcl/grids.pas b/lcl/grids.pas index 32226ca503..62229c3542 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -3191,7 +3191,7 @@ end; procedure TCustomGrid.VisualChange; begin - if (FUpdateCount<>0) or (not HandleAllocated) then + if (FUpdateCount<>0) then exit; {$ifdef DbgVisualChange} @@ -5052,7 +5052,7 @@ end; procedure TCustomGrid.UpdateSizes; begin - if (FUpdateCount<>0) or (not HandleAllocated) then + if (FUpdateCount<>0) then exit; Include(FGridFlags, gfVisualChange);