xml.cpp
changeset 344 7bafe3db684c
parent 246 3780fe1051a3
child 366 e95081c21da2
     1.1 --- a/xml.cpp	Wed Mar 15 13:53:53 2006 +0000
     1.2 +++ b/xml.cpp	Thu Jun 01 11:19:58 2006 +0000
     1.3 @@ -585,7 +585,11 @@
     1.4  			y=a.value("relPosY").toInt (&oky, 10);
     1.5  			if (okx && oky) 
     1.6  				
     1.7 -				lastFloat->setRelPos (QPoint (x,y) );
     1.8 +				{
     1.9 +					lastFloat->setRelPos (QPoint (x,y) );
    1.10 +					// make sure floats in mapcenter are repositioned to relative pos
    1.11 +					if (mc==lastBranch) mc->positionContents();
    1.12 +				}
    1.13  			else
    1.14  				// Couldn't read relPos
    1.15  				return false;  
    1.16 @@ -594,6 +598,10 @@
    1.17  	
    1.18  	if (!readOOAttr(a)) return false;
    1.19  
    1.20 +	if (!a.value ("orgName").isEmpty() )
    1.21 +	{
    1.22 +		((FloatImageObj*)(lastFloat))->setOriginalFilename (a.value("orgName"));
    1.23 +	}
    1.24  	return true;
    1.25  }
    1.26