diff -r c6bb4fdcc55f -r 78ba80b54bc4 xml-vym.cpp --- a/xml-vym.cpp Sat Aug 08 21:58:26 2009 +0000 +++ b/xml-vym.cpp Tue Aug 18 12:39:07 2009 +0000 @@ -139,13 +139,12 @@ if (loadMode==NewMap) { // Really use the found mapcenter as MCO in a new map - lastBranch=model->createMapCenter(); } else { // Treat the found mapcenter as a branch // in an existing map - BranchItem *bi=model->getSelectedBranch(); //FIXME-3 selection is no longer used here... + BranchItem *bi=model->getSelectedBranch(); //FIXME-3 selection is no longer used here... //FIXME-2 really? we are adding to a map... if (bi) { lastBranch=bi; @@ -153,10 +152,11 @@ { lastBranch=model->createBranch(lastBranch); } //else - //FIXME-3 lastBranch->clear(); + //lastBranch->clear(); //FIXME-1 clear not really defined! } else - return false; - } + // add mapCenter without parent + lastBranch=model->createMapCenter(); + } readBranchAttr (atts); } else if ( (eName == "standardflag" ||eName == "standardFlag") && @@ -438,7 +438,7 @@ return false; // Couldn't read relPos } } - if (!a.value( "absPosX").isEmpty() && loadMode==NewMap ) + if (!a.value( "absPosX").isEmpty() ) { if (!a.value( "absPosY").isEmpty() ) {