diff -r 2f002657dada -r 6e4b586aa88a xml-freemind.cpp --- a/xml-freemind.cpp Tue May 26 11:24:51 2009 +0000 +++ b/xml-freemind.cpp Wed Jun 03 20:37:17 2009 +0000 @@ -78,7 +78,7 @@ //cout <<"model="<getSelectedBranchItem(); if (lastBranchItem) { - lastBranchItem=model->createBranch(); + lastBranchItem=model->createBranch(lastBranchItem); readNodeAttr (atts); } } else if (atts.value ("POSITION")=="right") @@ -105,7 +105,7 @@ lastBranchItem=model->getSelectedBranchItem(); if (lastBranchItem) { - lastBranchItem=model->createBranch(); + lastBranchItem=model->createBranch(lastBranchItem); readNodeAttr (atts); } } @@ -113,7 +113,7 @@ { if (state!=StateMap) { - lastBranchItem=model->createBranch(); + lastBranchItem=model->createBranch(lastBranchItem); } readNodeAttr (atts); }