diff -r 0dc9286ad3d4 -r 9b9c7e8b9147 branchobj.cpp --- a/branchobj.cpp Wed Jul 13 11:36:15 2005 +0000 +++ b/branchobj.cpp Tue Jul 19 14:44:30 2005 +0000 @@ -1091,15 +1091,14 @@ { // Find current parent and // remove pointer to myself there - if (!dst) return NULL; - BranchObj *par=(BranchObj*)(parObj); if (par) par->removeBranchPtr (this); else return NULL; + // Create new pointer to myself at dst if (pos<0||dst->getDepth()==0) { // links myself as last branch at dst