xml-vym.cpp
changeset 760 59614eaf5fbb
parent 758 04039e47ac74
child 761 0301e6109702
     1.1 --- a/xml-vym.cpp	Tue Apr 28 20:53:44 2009 +0000
     1.2 +++ b/xml-vym.cpp	Wed Apr 29 18:46:31 2009 +0000
     1.3 @@ -410,8 +410,7 @@
     1.4  
     1.5  bool parseVYMHandler::readOOAttr (const QXmlAttributes& a)
     1.6  {
     1.7 -	BranchObj *bo=(BranchObj*)lastBranchItem->getLMO();
     1.8 -	if (bo)
     1.9 +	if (lastBranchItem)
    1.10  	{
    1.11  		bool okx,oky;
    1.12  		float x,y;
    1.13 @@ -422,10 +421,7 @@
    1.14  				x=a.value("relPosX").toFloat (&okx);
    1.15  				y=a.value("relPosY").toFloat (&oky);
    1.16  				if (okx && oky  )
    1.17 -				{
    1.18 -					bo->setUseRelPos (true);
    1.19 -					bo->move2RelPos (x,y);
    1.20 -				}	
    1.21 +					lastBranchItem->setRelPos (QPointF(x,y));
    1.22  				else
    1.23  					return false;   // Couldn't read relPos
    1.24  			}           
    1.25 @@ -437,7 +433,7 @@
    1.26  				x=a.value("absPosX").toFloat (&okx);
    1.27  				y=a.value("absPosY").toFloat (&oky);
    1.28  				if (okx && oky  )
    1.29 -					bo->move(x,y);
    1.30 +					lastBranchItem->setAbsPos (QPointF(x,y));
    1.31  				else
    1.32  					return false;   // Couldn't read absPos
    1.33  			}