branchobj.cpp
changeset 129 9b9c7e8b9147
parent 106 4083860dd82e
child 139 087e60400acc
     1.1 --- a/branchobj.cpp	Wed Jul 13 11:36:15 2005 +0000
     1.2 +++ b/branchobj.cpp	Tue Jul 19 14:44:30 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