xml-freemind.cpp
changeset 775 6e4b586aa88a
parent 763 8c028a5d9083
child 776 25e634a7e1dc
     1.1 --- a/xml-freemind.cpp	Tue May 26 11:24:51 2009 +0000
     1.2 +++ b/xml-freemind.cpp	Wed Jun 03 20:37:17 2009 +0000
     1.3 @@ -78,7 +78,7 @@
     1.4  
     1.5  		//cout <<"model="<<model<<"   first="<<model->first()<<endl;
     1.6  
     1.7 -		lastBranchItem=model->createBranch();
     1.8 +		lastBranchItem=model->createBranch(lastBranchItem);
     1.9  
    1.10  		//FIXME-3 lastBranch->move2RelPos (200,0);
    1.11  		lastBranchItem->setHeading ("  ");
    1.12 @@ -96,7 +96,7 @@
    1.13  				lastBranchItem=model->getSelectedBranchItem();
    1.14  				if (lastBranchItem)
    1.15  				{	
    1.16 -					lastBranchItem=model->createBranch();
    1.17 +					lastBranchItem=model->createBranch(lastBranchItem);
    1.18  					readNodeAttr (atts);
    1.19  				}	
    1.20  			} else if (atts.value ("POSITION")=="right")
    1.21 @@ -105,7 +105,7 @@
    1.22  				lastBranchItem=model->getSelectedBranchItem();
    1.23  				if (lastBranchItem)
    1.24  				{	
    1.25 -					lastBranchItem=model->createBranch();
    1.26 +					lastBranchItem=model->createBranch(lastBranchItem);
    1.27  					readNodeAttr (atts);
    1.28  				}	
    1.29  			}
    1.30 @@ -113,7 +113,7 @@
    1.31  		{
    1.32  			if (state!=StateMap)
    1.33  			{
    1.34 -				lastBranchItem=model->createBranch();
    1.35 +				lastBranchItem=model->createBranch(lastBranchItem);
    1.36  			}
    1.37  			readNodeAttr (atts);
    1.38  		}