exports.cpp
changeset 749 9ff332964015
parent 746 ee6b0f3a4c2f
child 750 ff3b01ce0960
     1.1 --- a/exports.cpp	Tue Mar 31 15:36:10 2009 +0000
     1.2 +++ b/exports.cpp	Wed Apr 01 15:06:57 2009 +0000
     1.3 @@ -108,13 +108,13 @@
     1.4  {
     1.5  	// Make prefix like "2.5.3" for "bo:2,bo:5,bo:3"
     1.6  	QString r;
     1.7 -	BranchObj *bo=bostart;
     1.8 -	int depth=bo->getDepth();
     1.9 +	TreeItem *ti=bostart->getTreeItem();
    1.10 +	int depth=ti->depth();
    1.11  	while (depth>0)
    1.12  	{
    1.13 -		r=QString("%1").arg(1+bo->getNum(),0,10)+"." + r;
    1.14 -		bo=(BranchObj*)(bo->getParObj());
    1.15 -		depth=bo->getDepth();
    1.16 +		r=QString("%1").arg(1+ti->num(),0,10)+"." + r;
    1.17 +		ti=ti->parent(); 
    1.18 +		depth=ti->depth();
    1.19  	}	
    1.20  	if (r.isEmpty())
    1.21  		return r;