Fix initial extent of map canvas is loaded incorrectly from projects

This commit is contained in:
Nyall Dawson 2017-12-05 13:05:33 +10:00
parent 9d0b0f27f2
commit 13cb44fd9d

View File

@ -1039,6 +1039,8 @@ bool QgsProject::readProjectFile( const QString &filename )
QgsMessageLog::logMessage( tr( "Project Variables Invalid" ), tr( "The project contains invalid variable settings." ) );
}
emit customVariablesChanged();
emit crsChanged();
emit ellipsoidChanged( ellipsoid() );
// read the project: used by map canvas and legend
emit readProject( *doc );
@ -1048,8 +1050,6 @@ bool QgsProject::readProjectFile( const QString &filename )
setDirty( false );
emit nonIdentifiableLayersChanged( nonIdentifiableLayers() );
emit crsChanged();
emit ellipsoidChanged( ellipsoid() );
return true;
}