diff -r 3d43b46a8564 -r 6dc0a20031f7 xml-vym.cpp --- a/xml-vym.cpp Wed Feb 04 11:52:52 2009 +0000 +++ b/xml-vym.cpp Wed Feb 04 16:33:16 2009 +0000 @@ -51,7 +51,7 @@ { // Create mapCenter model->clear(); - lastBranch=model->first(); // avoid empty pointer + lastBranch=NULL; if (!atts.value( "author").isEmpty() ) model->setAuthor(atts.value( "author" ) ); @@ -182,7 +182,7 @@ // selection==lmo==NULL // Treat it like ImportAdd then... loadMode=ImportAdd; - lmo=model->first(); + lmo=model->first()->getLMO(); } if (lmo && ( (typeid(*lmo) == typeid(BranchObj) ) || (typeid(*lmo) == typeid(MapCenterObj) ) ) )