xml-vym.cpp
changeset 740 6dc0a20031f7
parent 736 21f115d48daf
child 741 1b4d1ea6ea8c
     1.1 --- a/xml-vym.cpp	Wed Feb 04 11:52:52 2009 +0000
     1.2 +++ b/xml-vym.cpp	Wed Feb 04 16:33:16 2009 +0000
     1.3 @@ -51,7 +51,7 @@
     1.4  		{
     1.5  			// Create mapCenter
     1.6  			model->clear();
     1.7 -			lastBranch=model->first();	// avoid empty pointer
     1.8 +			lastBranch=NULL;
     1.9  
    1.10  			if (!atts.value( "author").isEmpty() )
    1.11  				model->setAuthor(atts.value( "author" ) );
    1.12 @@ -182,7 +182,7 @@
    1.13  			// selection==lmo==NULL
    1.14  			// Treat it like ImportAdd then...
    1.15  			loadMode=ImportAdd;
    1.16 -			lmo=model->first();		
    1.17 +			lmo=model->first()->getLMO();		
    1.18  		}	
    1.19  		if (lmo && ( (typeid(*lmo) == typeid(BranchObj) ) 
    1.20  				|| (typeid(*lmo) == typeid(MapCenterObj) ) ) )