diff -r 5391ab620c95 -r bb94eec7c8f3 ornamentedobj.cpp --- a/ornamentedobj.cpp Wed Sep 06 12:47:06 2006 +0000 +++ b/ornamentedobj.cpp Thu Sep 21 13:48:05 2006 +0000 @@ -160,6 +160,11 @@ void OrnamentedObj::move2RelPos(double x, double y) { setRelPos (QPoint((int)x,(int)y)); + if (parObj) + { + QPoint p=parObj->getChildPos(); + move (p.x()+x, p.y() +y); + } } void OrnamentedObj::move2RelPos(QPoint p) @@ -355,14 +360,16 @@ { QString posAttr; - if (useRelPos) - posAttr=attribut("relPosX",QString().setNum(relPos.x(),10)) + - attribut("relPosY",QString().setNum(relPos.y(),10)); + if (depth==0) + posAttr= + attribut("absPosX",QString().setNum(absPos.x(),10)) + + attribut("absPosY",QString().setNum(absPos.y(),10)); else { - if (depth==0 || depth==1) posAttr= - attribut("absPosX",QString().setNum(absPos.x(),10)) + - attribut("absPosY",QString().setNum(absPos.y(),10)); + if (depth==1) + posAttr= + attribut("relPosX",QString().setNum(relPos.x(),10)) + + attribut("relPosY",QString().setNum(relPos.y(),10)); else posAttr=""; }