1.1 --- a/xml-freemind.cpp Wed Feb 04 11:52:52 2009 +0000
1.2 +++ b/xml-freemind.cpp Wed Feb 04 16:33:16 2009 +0000
1.3 @@ -67,16 +67,23 @@
1.4 "saved using freemind " +atts.value("version")+". "
1.5 "The version of this vym can parse freemind " + v +".");
1.6 }
1.7 + TreeItem *ti=model->first(); // FIXME this will be NULL !!!
1.8 + BranchObj *bo;
1.9 + if (ti->getType()==TreeItem::MapCenter)
1.10 + bo=(BranchObj*)(ti->getLMO());
1.11 + else
1.12 + qWarning ("parseFreeMindHandler::startElement no mapCenter!!");
1.13 +
1.14 cout <<"model="<<model<<" first="<<model->first()<<endl;
1.15 - model->first()->addBranch();
1.16 - lastBranch=model->first()->getLastBranch();
1.17 +
1.18 + lastBranch=bo->addBranch();
1.19 +
1.20 lastBranch->move2RelPos (200,0);
1.21 lastBranch->setHeading (" ");
1.22 - model->first()->addBranch();
1.23 - lastBranch=model->first()->getLastBranch();
1.24 + lastBranch=bo->addBranch();
1.25 lastBranch->move2RelPos (-200,0);
1.26 lastBranch->setHeading (" ");
1.27 - lastBranch=model->first();
1.28 + lastBranch=bo;
1.29
1.30 } else if ( eName == "node" && (state == StateMap || state == StateNode ))
1.31 {