1.1 --- a/ornamentedobj.cpp Wed Mar 15 13:53:53 2006 +0000
1.2 +++ b/ornamentedobj.cpp Wed Mar 15 13:53:54 2006 +0000
1.3 @@ -327,11 +327,18 @@
1.4 QString OrnamentedObj::getOrnAttr()
1.5 {
1.6 QString posAttr;
1.7 - if (depth==0 || depth==1) posAttr=
1.8 - attribut("absPosX",QString().setNum(absPos.x(),10)) +
1.9 - attribut("absPosY",QString().setNum(absPos.y(),10));
1.10 +
1.11 + if (useRelPos)
1.12 + posAttr=attribut("relPosX",QString().setNum(relPos.x(),10)) +
1.13 + attribut("relPosY",QString().setNum(relPos.y(),10));
1.14 else
1.15 - posAttr="";
1.16 + {
1.17 + if (depth==0 || depth==1) posAttr=
1.18 + attribut("absPosX",QString().setNum(absPos.x(),10)) +
1.19 + attribut("absPosY",QString().setNum(absPos.y(),10));
1.20 + else
1.21 + posAttr="";
1.22 + }
1.23
1.24 QString urlAttr;
1.25 if (!url.isEmpty())