diff -r 56fa27b2be3e -r 65c5a0c28d20 xml-freemind.cpp --- a/xml-freemind.cpp Mon Jul 30 09:47:13 2007 +0000 +++ b/xml-freemind.cpp Tue Jan 15 10:54:41 2008 +0000 @@ -68,15 +68,15 @@ "saved using freemind " +atts.value("version")+". " "The version of this vym can parse freemind " + v +"."); } - mc->addBranch(); - lastBranch=mc->getLastBranch(); + model->first()->addBranch(); + lastBranch=model->first()->getLastBranch(); lastBranch->move2RelPos (200,0); lastBranch->setHeading (" "); - mc->addBranch(); - lastBranch=mc->getLastBranch(); + model->first()->addBranch(); + lastBranch=model->first()->getLastBranch(); lastBranch->move2RelPos (-200,0); lastBranch->setHeading (" "); - lastBranch=mc; + lastBranch=model->first(); } else if ( eName == "node" && (state == StateMap || state == StateNode )) { @@ -84,8 +84,8 @@ { if (atts.value ("POSITION")=="left") { - me->select ("bo:1"); - lastBranch=me->getSelectedBranch(); + model->select ("bo:1"); + lastBranch=model->getSelectedBranch(); if (lastBranch) { lastBranch->addBranch(); @@ -94,8 +94,8 @@ } } else if (atts.value ("POSITION")=="right") { - me->select ("bo:0"); - lastBranch=me->getSelectedBranch(); + model->select ("bo:0"); + lastBranch=model->getSelectedBranch(); if (lastBranch) { lastBranch->addBranch();