1.1 --- a/xml-freemind.cpp Mon Jul 30 09:47:13 2007 +0000
1.2 +++ b/xml-freemind.cpp Mon Jan 14 16:27:00 2008 +0000
1.3 @@ -68,15 +68,15 @@
1.4 "saved using freemind " +atts.value("version")+". "
1.5 "The version of this vym can parse freemind " + v +".");
1.6 }
1.7 - mc->addBranch();
1.8 - lastBranch=mc->getLastBranch();
1.9 + model->first()->addBranch();
1.10 + lastBranch=model->first()->getLastBranch();
1.11 lastBranch->move2RelPos (200,0);
1.12 lastBranch->setHeading (" ");
1.13 - mc->addBranch();
1.14 - lastBranch=mc->getLastBranch();
1.15 + model->first()->addBranch();
1.16 + lastBranch=model->first()->getLastBranch();
1.17 lastBranch->move2RelPos (-200,0);
1.18 lastBranch->setHeading (" ");
1.19 - lastBranch=mc;
1.20 + lastBranch=model->first();
1.21
1.22 } else if ( eName == "node" && (state == StateMap || state == StateNode ))
1.23 {
1.24 @@ -84,8 +84,8 @@
1.25 {
1.26 if (atts.value ("POSITION")=="left")
1.27 {
1.28 - me->select ("bo:1");
1.29 - lastBranch=me->getSelectedBranch();
1.30 + model->select ("bo:1");
1.31 + lastBranch=model->getSelectedBranch();
1.32 if (lastBranch)
1.33 {
1.34 lastBranch->addBranch();
1.35 @@ -94,8 +94,8 @@
1.36 }
1.37 } else if (atts.value ("POSITION")=="right")
1.38 {
1.39 - me->select ("bo:0");
1.40 - lastBranch=me->getSelectedBranch();
1.41 + model->select ("bo:0");
1.42 + lastBranch=model->getSelectedBranch();
1.43 if (lastBranch)
1.44 {
1.45 lastBranch->addBranch();