diff -r ac4be290c750 -r 84ae10f6e3a3 xml-vym.cpp --- a/xml-vym.cpp Thu Jan 15 00:52:35 2009 +0000 +++ b/xml-vym.cpp Tue Jan 20 15:23:16 2009 +0000 @@ -35,13 +35,13 @@ { QColor col; /* Testing + */ cout << "startElement <"<< qPrintable(eName) <<"> state="<createMapCenter(); + cout << "ok0\n"; lastBranch=model->getSelectedBranch(); + cout << "ok1 lastBranch="<getSelection(); + LinkableMapObj* lmo=model->getSelectedLMO(); if (lmo && ( (typeid(*lmo) == typeid(BranchObj) ) || (typeid(*lmo) == typeid(MapCenterObj) ) ) ) { @@ -175,7 +177,7 @@ { // This is used in vymparts, which have no mapcenter! isVymPart=true; - LinkableMapObj* lmo=model->getSelection(); + LinkableMapObj* lmo=model->getSelectedLMO(); if (!lmo) { // If a vym part is _loaded_ (not imported),