ornamentedobj.cpp
changeset 755 ed5b407975b3
parent 753 25a77484ec72
child 766 7a71a914afdb
     1.1 --- a/ornamentedobj.cpp	Mon Apr 20 10:42:05 2009 +0000
     1.2 +++ b/ornamentedobj.cpp	Thu Apr 23 12:15:31 2009 +0000
     1.3 @@ -407,13 +407,13 @@
     1.4  {
     1.5  	QString posAttr;
     1.6  
     1.7 -	if (depth==0)
     1.8 +	if (treeItem->depth()==0)
     1.9  		posAttr=		
    1.10  			attribut("absPosX",QString().setNum(absPos.x())) +
    1.11  			attribut("absPosY",QString().setNum(absPos.y())); 
    1.12  	else
    1.13  	{
    1.14 -		if (depth==1 || typeid (*this)==typeid (FloatImageObj))
    1.15 +		if (treeItem->depth()==1 || typeid (*this)==typeid (FloatImageObj))
    1.16  		{
    1.17  			if (relPos.x()==0 && relPos.y()==0)
    1.18  				setRelPos();