mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-21 13:40:33 +01:00
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:
parent
a4a2a81027
commit
b329e88f51
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user