ornamentedobj.cpp
changeset 724 cf14046909cd
parent 694 2bbdcca6e779
child 746 ee6b0f3a4c2f
     1.1 --- a/ornamentedobj.cpp	Mon May 05 13:46:42 2008 +0000
     1.2 +++ b/ornamentedobj.cpp	Mon Aug 04 13:35:54 2008 +0000
     1.3 @@ -93,10 +93,10 @@
     1.4  
     1.5  void OrnamentedObj::setLinkColor()
     1.6  {
     1.7 -	if (mapEditor->getMapLinkColorHint()==HeadingColor)
     1.8 +	if (model->getMapLinkColorHint()==HeadingColor)
     1.9  		LinkableMapObj::setLinkColor (heading->getColor());
    1.10  	else	
    1.11 -		LinkableMapObj::setLinkColor (mapEditor->getMapDefLinkColor());
    1.12 +		LinkableMapObj::setLinkColor (model->getMapDefLinkColor());
    1.13  }
    1.14  
    1.15  void OrnamentedObj::setColor (QColor col)
    1.16 @@ -321,7 +321,7 @@
    1.17  		QDir d(s);
    1.18  		if (!d.path().startsWith ("/"))
    1.19  		{
    1.20 -			QString p=mapEditor->getDestPath();
    1.21 +			QString p=model->getDestPath();
    1.22  			int i=p.findRev("/",-1);
    1.23  			d.setPath(p.left(i)+"/"+s);
    1.24  			d.convertToAbs();
    1.25 @@ -432,7 +432,7 @@
    1.26  		if (!systemFlags->isActive ("note")) return;
    1.27  		systemFlags->deactivate("note");
    1.28  	}	
    1.29 -	mapEditor->setChanged();
    1.30 +	model->setChanged();
    1.31  	calcBBoxSize();
    1.32  	positionBBox();	
    1.33  	move (absPos.x(), absPos.y() );
    1.34 @@ -498,7 +498,7 @@
    1.35  
    1.36  	QString vymLinkAttr;
    1.37  	if (!vymLink.isEmpty())
    1.38 -		vymLinkAttr=attribut ("vymLink",convertToRel(mapEditor->getDestPath(),vymLink) );
    1.39 +		vymLinkAttr=attribut ("vymLink",convertToRel(model->getDestPath(),vymLink) );
    1.40  
    1.41  	QString hideExpAttr;
    1.42  	if (hideExport)