diff -r f0fe7c36ec5c -r 43268373032d branchitem.cpp --- a/branchitem.cpp Fri Apr 09 14:24:04 2010 +0000 +++ b/branchitem.cpp Wed Jun 09 13:14:08 2010 +0000 @@ -1,13 +1,13 @@ +#include "branchitem.h" + #include "attributeitem.h" -#include "branchitem.h" #include "branchobj.h" #include "vymmodel.h" +#include "xlink.h" #include "xlinkitem.h" #include -using namespace std; - BranchItem::BranchItem(const QList &data, TreeItem *parent):MapItem (data,parent) { //qDebug()<< "Constr. BranchItem"; @@ -31,7 +31,7 @@ BranchItem::~BranchItem() { - qDebug()<< "Destr. BranchItem "< &tmpLinks ) //FIXME-3 Check if everything is saved... { // Cloudy stuff can be hidden during exports if (hidden) return QString(); @@ -140,27 +140,15 @@ TreeItem *ti=getBranchNum(i); while (ti) { - s+=getBranchNum(i)->saveToDir(tmpdir,prefix,offset); + s+=getBranchNum(i)->saveToDir(tmpdir,prefix,offset,tmpLinks); i++; ti=getBranchNum(i); } - // Save XLinks - QString ol; // old link - QString cl; // current link + // Mark Links for save for (int i=0; isaveToDir(); - if (cl!=ol) - { - s+=cl; - ol=cl; - } else - { - qWarning (QString("BranchItem::saveToDir Ignoring of duplicate xLink in %1").arg(getHeading())); - qWarning ()<<"this="<getLink() )) + tmpLinks.append (getXLinkNum(i)->getLink() ); decIndent(); s+=endElement (elementName);