[Mmclibrary-cvs] mmclibrary/MMCLib2/Nodes BaseNode.cs,1.27,1.28
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2004-12-05 15:47:27
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3620 Modified Files: BaseNode.cs Log Message: Remove() removes itself out of the m_Children of it's parent. Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/BaseNode.cs,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** BaseNode.cs 15 Nov 2004 19:42:27 -0000 1.27 --- BaseNode.cs 5 Dec 2004 15:47:16 -0000 1.28 *************** *** 899,902 **** --- 899,905 ---- m_ChildNodes.Clear( ); + if(this.Parent != null) + Parent.Children.Remove(this); + if (!removeChildrenOnly) { |