Skip to content
Permalink
Browse files

Fix initial extent of map canvas is loaded incorrectly from projects

  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent 9d0b0f2 commit 13cb44fd9d7bf3ab9026625de1413ea96a05d78e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsproject.cpp
@@ -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;
}

0 comments on commit 13cb44f

Please sign in to comment.
You can’t perform that action at this time.