branchobj.cpp
changeset 132 fd7f08a85971
parent 106 4083860dd82e
child 139 087e60400acc
     1.1 --- a/branchobj.cpp	Tue Jun 14 09:41:37 2005 +0000
     1.2 +++ b/branchobj.cpp	Sat Jul 23 10:26:29 2005 +0000
     1.3 @@ -1091,15 +1091,14 @@
     1.4  {
     1.5  	// Find current parent and 
     1.6  	// remove pointer to myself there
     1.7 -
     1.8  	if (!dst) return NULL;
     1.9 -
    1.10  	BranchObj *par=(BranchObj*)(parObj);
    1.11  	if (par)
    1.12  		par->removeBranchPtr (this);
    1.13  	else
    1.14  		return NULL;
    1.15  
    1.16 +	// Create new pointer to myself at dst
    1.17  	if (pos<0||dst->getDepth()==0)
    1.18  	{	
    1.19  		// links myself as last branch at dst