diff -r 0fad394bc330 -r 31841b366d5e vymmodel.cpp --- a/vymmodel.cpp Wed Mar 10 15:36:19 2010 +0000 +++ b/vymmodel.cpp Mon Mar 15 11:49:42 2010 +0000 @@ -2284,6 +2284,7 @@ QString ("addMapCenter (%1,%2)").arg (contextPos.x()).arg(contextPos.y()), QString ("Adding MapCenter to (%1,%2)").arg (contextPos.x()).arg(contextPos.y()) ); + mapEditor->autoLayout(); //FIXME-3 testing return bi; } @@ -4750,10 +4751,20 @@ } +void VymModel::startAnimation(BranchObj *bo, const QPointF &v) +{ + if (!bo) return; + + if (bo->getUseRelPos()) + startAnimation (bo,bo->getRelPos(),bo->getRelPos()+v); + else + startAnimation (bo,bo->getAbsPos(),bo->getAbsPos()+v); +} + void VymModel::startAnimation(BranchObj *bo, const QPointF &start, const QPointF &dest) { if (start==dest) return; - if (bo && bo->getTreeItem()->depth()>0) + if (bo && bo->getTreeItem()->depth()>=0) { AnimPoint ap; ap.setStart (start);