Browse Source

Bugfix SharpTreeNodeCollection.Clear().

pull/70/head
Daniel Grunwald 15 years ago
parent
commit
3302748c58
  1. 2
      SharpTreeView/SharpTreeNodeCollection.cs

2
SharpTreeView/SharpTreeNodeCollection.cs

@ -140,7 +140,7 @@ namespace ICSharpCode.TreeView
ThrowOnReentrancy(); ThrowOnReentrancy();
var oldList = list; var oldList = list;
list = new List<SharpTreeNode>(); list = new List<SharpTreeNode>();
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, list, 0)); OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldList, 0));
} }
public bool Contains(SharpTreeNode node) public bool Contains(SharpTreeNode node)

Loading…
Cancel
Save