diff -r 338ebdc9b947 -r 14f2b1b15242 treeitem.cpp --- a/treeitem.cpp Fri Oct 02 14:31:03 2009 +0000 +++ b/treeitem.cpp Fri Nov 13 08:32:03 2009 +0000 @@ -532,7 +532,7 @@ BranchItem* TreeItem::getFirstBranch() { if (branchCounter>0) - return getBranchNum (branchOffset); + return getBranchNum (0); else return NULL; } @@ -540,7 +540,7 @@ BranchItem* TreeItem::getLastBranch() { if (branchCounter>0) - return getBranchNum (branchOffset + branchCounter-1); + return getBranchNum (branchCounter-1); else return NULL; } @@ -707,7 +707,7 @@ return hidden; } -QString TreeItem::getGeneralAttr() +QString TreeItem::getGeneralAttr() { QString s; if (hideExport) @@ -715,7 +715,7 @@ if (!url.isEmpty()) s+=attribut ("url",url); if (!vymLink.isEmpty()) - s+=attribut ("vymLink",vymLink); + s+=attribut ("vymLink",convertToRel (model->getDestPath(),vymLink)); return s; }