diff -r 67cfa6e6b863 -r 7ced3733ba60 linkablemapobj.cpp --- a/linkablemapobj.cpp Tue Oct 24 15:36:38 2006 +0000 +++ b/linkablemapobj.cpp Mon Oct 30 12:39:37 2006 +0000 @@ -154,9 +154,13 @@ { if (parObj) { - getRelPos(); + relPos.setX (absPos.x() - parObj->getChildPos().x() ); + relPos.setY (absPos.y() - parObj->getChildPos().y() ); parObj->calcBBoxSize(); - } + } else + { + qWarning ("LMO::setRelPos No parent yet!"); + } } void LinkableMapObj::setRelPos(const QPoint &p) @@ -166,14 +170,15 @@ { parObj->calcBBoxSize(); requestReposition(); - } + } else + { + qWarning ("LMO::setRelPos No parent yet!"); + } } QPoint LinkableMapObj::getRelPos() { if (!parObj) return QPoint(); - relPos.setX (absPos.x() - parObj->getChildPos().x() ); - relPos.setY (absPos.y() - parObj->getChildPos().y() ); return relPos; } @@ -713,9 +718,9 @@ void LinkableMapObj::reposition() { + cout << "LMO::reposition\n"; // FIXME not needed? Is overloaded in BranchObj... /* - cout << "LMO::reposition\n"; if (depth==0) { // only calculate the sizes once. If the deepest LMO changes its height,