* 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:
blikblum
2008-12-15 23:37:47 +00:00
parent 59646e67d2
commit 647f1e99a3

View File

@ -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;