1.1 --- a/ornamentedobj.cpp Thu Sep 14 11:38:17 2006 +0000
1.2 +++ b/ornamentedobj.cpp Thu Sep 14 11:38:18 2006 +0000
1.3 @@ -160,6 +160,11 @@
1.4 void OrnamentedObj::move2RelPos(double x, double y)
1.5 {
1.6 setRelPos (QPoint((int)x,(int)y));
1.7 + if (parObj)
1.8 + {
1.9 + QPoint p=parObj->getChildPos();
1.10 + move (p.x()+x, p.y() +y);
1.11 + }
1.12 }
1.13
1.14 void OrnamentedObj::move2RelPos(QPoint p)
1.15 @@ -355,14 +360,16 @@
1.16 {
1.17 QString posAttr;
1.18
1.19 - if (useRelPos)
1.20 - posAttr=attribut("relPosX",QString().setNum(relPos.x(),10)) +
1.21 - attribut("relPosY",QString().setNum(relPos.y(),10));
1.22 + if (depth==0)
1.23 + posAttr=
1.24 + attribut("absPosX",QString().setNum(absPos.x(),10)) +
1.25 + attribut("absPosY",QString().setNum(absPos.y(),10));
1.26 else
1.27 {
1.28 - if (depth==0 || depth==1) posAttr=
1.29 - attribut("absPosX",QString().setNum(absPos.x(),10)) +
1.30 - attribut("absPosY",QString().setNum(absPos.y(),10));
1.31 + if (depth==1)
1.32 + posAttr=
1.33 + attribut("relPosX",QString().setNum(relPos.x(),10)) +
1.34 + attribut("relPosY",QString().setNum(relPos.y(),10));
1.35 else
1.36 posAttr="";
1.37 }