diff -r db0ec4bcf416 -r ed5b407975b3 ornamentedobj.cpp --- a/ornamentedobj.cpp Mon Apr 20 10:42:05 2009 +0000 +++ b/ornamentedobj.cpp Thu Apr 23 12:15:31 2009 +0000 @@ -407,13 +407,13 @@ { QString posAttr; - if (depth==0) + if (treeItem->depth()==0) posAttr= attribut("absPosX",QString().setNum(absPos.x())) + attribut("absPosY",QString().setNum(absPos.y())); else { - if (depth==1 || typeid (*this)==typeid (FloatImageObj)) + if (treeItem->depth()==1 || typeid (*this)==typeid (FloatImageObj)) { if (relPos.x()==0 && relPos.y()==0) setRelPos();