1.1 --- a/mapcenterobj.cpp Fri Feb 01 15:28:35 2008 +0000
1.2 +++ b/mapcenterobj.cpp Sat May 10 22:16:13 2008 +0000
1.3 @@ -3,6 +3,8 @@
1.4 #include "floatimageobj.h"
1.5 #include "geometry.h"
1.6 #include "mapcenterobj.h"
1.7 +#include "mapeditor.h"
1.8 +
1.9
1.10 /////////////////////////////////////////////////////////////////
1.11 // MapCenterObj
1.12 @@ -49,6 +51,11 @@
1.13 BranchObj::move(x,y);
1.14 }
1.15
1.16 +void MapCenterObj::move (QPointF absPos)
1.17 +{
1.18 + BranchObj::move(absPos);
1.19 +}
1.20 +
1.21 void MapCenterObj::moveBy (double x, double y)
1.22 {
1.23 BranchObj::moveBy(x,y);
1.24 @@ -132,7 +139,8 @@
1.25 // Providing an ID for a branch makes export to XHTML easier
1.26 QString idAttr;
1.27 if (countXLinks()>0)
1.28 - idAttr=attribut ("id",getSelectString());
1.29 + idAttr=attribut ("id",mapEditor->getModel()->getSelectString(this)); //TODO directly access model
1.30 +
1.31 else
1.32 idAttr="";
1.33