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

git-svn-id: trunk@55163 -
This commit is contained in:
ondrej 2017-06-02 18:34:33 +00:00
parent a4a2a81027
commit b329e88f51

View File

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