# HG changeset patch # User insilmaril # Date 1260785875 0 # Node ID b486ffd0fa1152b762f6149a4ceaa01531e90a16 # Parent 3086ee01554a85bb3cee4389bf717051261989ed Bugfix for relinking mainbranches diff -r 3086ee01554a -r b486ffd0fa11 branchobj.cpp --- a/branchobj.cpp Thu Dec 10 17:04:48 2009 +0000 +++ b/branchobj.cpp Mon Dec 14 10:17:55 2009 +0000 @@ -69,16 +69,6 @@ clear(); } -bool BranchObj::operator< ( const BranchObj & other ) -{ - return angle < other.angle; -} - -bool BranchObj::operator== ( const BranchObj & other ) -{ - return angle == other.angle; -} - void BranchObj::init () { if (parObj) @@ -94,8 +84,6 @@ setVisibility (other->visible); - angle=other->angle; - positionBBox(); } @@ -107,14 +95,6 @@ delete xlink.takeFirst(); } -bool isAbove (BranchObj* a, BranchObj *b) -{ - if (a->angle < b->angle) - return true; - else - return false; -} - void BranchObj::setParObjTmp(LinkableMapObj* dst, QPointF m, int off) //FIXME-1 when moving a mainbranch to a branch it still has relPos, not moved as child { // Temporary link to dst @@ -146,7 +126,6 @@ // Usually the positioning would be done by reposition(), // but then also the destination branch would "Jump" around... // Better just do it approximately - cout << "BO::setTmp "; if (dsti->depth()==0) { // new parent is a mapcenter Vector v= ( m - bodst->getChildPos()); @@ -154,7 +133,6 @@ v.normalize(); v.scale (100); move2RelPos (v.toQPointF()); - cout << " v="<