diff -r 371945eb6d31 -r bef71af3f6ab xml-freemind.cpp --- a/xml-freemind.cpp Mon Jan 14 16:26:59 2008 +0000 +++ b/xml-freemind.cpp Mon Jan 14 16:27:00 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();