treeitem.cpp
changeset 804 14f2b1b15242
parent 795 6b0a5f4923d3
child 819 8f987e376035
     1.1 --- a/treeitem.cpp	Fri Oct 02 14:31:03 2009 +0000
     1.2 +++ b/treeitem.cpp	Fri Nov 13 08:32:03 2009 +0000
     1.3 @@ -532,7 +532,7 @@
     1.4  BranchItem* TreeItem::getFirstBranch()
     1.5  {
     1.6  	if (branchCounter>0)
     1.7 -		return getBranchNum (branchOffset);
     1.8 +		return getBranchNum (0);
     1.9  	else
    1.10  		return NULL;
    1.11  }
    1.12 @@ -540,7 +540,7 @@
    1.13  BranchItem* TreeItem::getLastBranch()
    1.14  {
    1.15  	if (branchCounter>0)
    1.16 -		return getBranchNum (branchOffset + branchCounter-1);
    1.17 +		return getBranchNum (branchCounter-1);
    1.18  	else
    1.19  		return NULL;
    1.20  }
    1.21 @@ -707,7 +707,7 @@
    1.22  	return hidden;
    1.23  }	
    1.24  
    1.25 -QString TreeItem::getGeneralAttr()
    1.26 +QString TreeItem::getGeneralAttr()	
    1.27  {
    1.28  	QString s;
    1.29  	if (hideExport)
    1.30 @@ -715,7 +715,7 @@
    1.31  	if (!url.isEmpty())
    1.32  		s+=attribut ("url",url);
    1.33  	if (!vymLink.isEmpty())
    1.34 -		s+=attribut ("vymLink",vymLink);
    1.35 +		s+=attribut ("vymLink",convertToRel (model->getDestPath(),vymLink));
    1.36  	return s;	
    1.37  }
    1.38