diff -r 72cc3873306a -r 494e8f40f0f7 floatobj.cpp --- a/floatobj.cpp Mon Sep 05 11:56:31 2005 +0000 +++ b/floatobj.cpp Tue Jan 03 09:44:41 2006 +0000 @@ -66,11 +66,25 @@ else relPos.setX (absPos.x() - parObj->x() ); relPos.setY (absPos.y() - parObj->y() ); + if (parObj) + { + parObj->calcBBoxSize(); + parObj->requestReposition(); + } } void FloatObj::setRelPos(const QPoint &p) { relPos=p; + if (parObj) + { parObj->calcBBoxSize(); + parObj->requestReposition(); + } +} + +QPoint FloatObj::getRelPos () +{ + return relPos; } void FloatObj::setZ(const int &i) @@ -141,12 +155,7 @@ void FloatObj::select() { LinkableMapObj::select(); - // Temporary draw the link while FO is selected - if (style==StyleUndef) - { - setLinkStyle(getDefLinkStyle()); - setLinkColor(parObj->getLinkColor()); - } + setLinkColor(parObj->getLinkColor()); // Update FloatExport switch in context menu if (floatExport) @@ -160,6 +169,5 @@ void FloatObj::unselect() { LinkableMapObj::unselect(); - setLinkStyle (StyleUndef); }