ornamentedobj.cpp
changeset 635 459f0a2d5485
parent 628 d7d0708b1c60
child 638 3436b8eb3d9b
     1.1 --- a/ornamentedobj.cpp	Mon Dec 17 15:36:18 2007 +0000
     1.2 +++ b/ornamentedobj.cpp	Mon Dec 17 15:40:14 2007 +0000
     1.3 @@ -482,10 +482,13 @@
     1.4  	else
     1.5  	{
     1.6  		if (depth==1 || typeid (*this)==typeid (FloatImageObj))
     1.7 +		{
     1.8 +			if (relPos.x()==0 && relPos.y()==0)
     1.9 +				setRelPos();
    1.10  			posAttr=
    1.11  				attribut("relPosX",QString().setNum(relPos.x())) +
    1.12  				attribut("relPosY",QString().setNum(relPos.y())); 
    1.13 -		else
    1.14 +		} else
    1.15  			posAttr="";
    1.16  	}	
    1.17