diff -r 394b2f297e1d -r 6f28020b33d1 branchobj.cpp --- a/branchobj.cpp Thu Jul 17 11:11:55 2008 +0000 +++ b/branchobj.cpp Thu Jul 17 12:55:24 2008 +0000 @@ -1310,7 +1310,7 @@ } } -void BranchObj::alignRelativeTo (QPointF ref) +void BranchObj::alignRelativeTo (QPointF ref,bool alignSelf) { qreal th = bboxTotal.height(); // TODO testing @@ -1359,18 +1359,19 @@ { LinkableMapObj::Orientation o; o=parObj->getOrientation(); - switch (orientation) - { - case LinkableMapObj::LeftOfCenter: - move (ref.x() - bbox.width(), ref.y() + (th-bbox.height())/2 ); - break; - case LinkableMapObj::RightOfCenter: - move (ref.x() , ref.y() + (th-bbox.height())/2 ); - break; - default: - qWarning ("LMO::alignRelativeTo: oops, no orientation given..."); - break; - } + if (alignSelf) + switch (orientation) + { + case LinkableMapObj::LeftOfCenter: + move (ref.x() - bbox.width(), ref.y() + (th-bbox.height())/2 ); + break; + case LinkableMapObj::RightOfCenter: + move (ref.x() , ref.y() + (th-bbox.height())/2 ); + break; + default: + qWarning ("LMO::alignRelativeTo: oops, no orientation given..."); + break; + } } } @@ -1393,7 +1394,7 @@ { if (!branch.at(i)->isHidden()) { - branch.at(i)->alignRelativeTo (ref2); + branch.at(i)->alignRelativeTo (ref2,true); ref2.setY(ref2.y() + branch.at(i)->getBBoxSizeWithChilds().height() ); } }