You've already forked lazarus-ccr
* Check if Component is being destroyed in TVirtualTreeColumns.Update
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@637 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -8386,6 +8386,10 @@ end;
|
||||
procedure TVirtualTreeColumns.Update(Item: TCollectionItem);
|
||||
|
||||
begin
|
||||
//lcl
|
||||
// Skip while Destroying
|
||||
if csDestroying in FHeader.TreeView.ComponentState then
|
||||
Exit;
|
||||
// This is the only place which gets notified when a new column has been added or removed
|
||||
// and we need this event to adjust the column position array.
|
||||
InitializePositionArray;
|
||||
|
Reference in New Issue
Block a user