LCL: Grids: we need VisualChange and UpdateSizes also when handle is not allocated to access correct cache values. Issue #31955

git-svn-id: branches/fixes_1_8@55194 -
This commit is contained in:
mattias 2017-06-04 05:50:50 +00:00
parent 4d6f9ddd5e
commit 2b2ca33631

View File

@ -3185,7 +3185,7 @@ end;
procedure TCustomGrid.VisualChange;
begin
if (FUpdateCount<>0) or (not HandleAllocated) then
if (FUpdateCount<>0) then
exit;
{$ifdef DbgVisualChange}
@ -5045,7 +5045,7 @@ end;
procedure TCustomGrid.UpdateSizes;
begin
if (FUpdateCount<>0) or (not HandleAllocated) then
if (FUpdateCount<>0) then
exit;
Include(FGridFlags, gfVisualChange);