mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix initial extent of map canvas is loaded incorrectly from projects
This commit is contained in:
parent
9d0b0f27f2
commit
13cb44fd9d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user