diff -r a40af6315ac6 -r 3a58c9ef4a18 mapcenterobj.cpp --- a/mapcenterobj.cpp Thu Sep 14 11:38:17 2006 +0000 +++ b/mapcenterobj.cpp Thu Sep 14 11:38:18 2006 +0000 @@ -65,8 +65,8 @@ void MapCenterObj::moveAllBy (double dx, double dy) { - // Move myself - moveBy(dx,dy); + // Move myself and childs + BranchObj::moveBy(dx,dy); } void MapCenterObj::updateLink() @@ -80,6 +80,24 @@ b->updateLink(); } +void MapCenterObj::updateRelPositions() +{ + if (repositionRequest) unsetAllRepositionRequests(); + + // update relative Positions of branches and floats + BranchObj *b; + for (b=branch.first(); b; b=branch.next() ) + { + b->setRelPos(); + b->setOrientation(); + } + + FloatObj *fo; + for (fo=floatimage.first(); fo; fo=floatimage.next() ) fo->setRelPos(); + + if (repositionRequest) reposition(); +} + LinkableMapObj* MapCenterObj::findMapObj(QPoint p, LinkableMapObj *excludeLMO) { BranchObj *bo;