Skip to content

Commit

Permalink
Fix initial extent of map canvas is loaded incorrectly from projects
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent 9d0b0f2 commit 13cb44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsproject.cpp
Expand Up @@ -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 );
Expand All @@ -1048,8 +1050,6 @@ bool QgsProject::readProjectFile( const QString &filename )
setDirty( false );

emit nonIdentifiableLayersChanged( nonIdentifiableLayers() );
emit crsChanged();
emit ellipsoidChanged( ellipsoid() );

return true;
}
Expand Down

0 comments on commit 13cb44f

Please sign in to comment.