Skip to content

Commit 13cb44f

Browse files
committed
Fix initial extent of map canvas is loaded incorrectly from projects
1 parent 9d0b0f2 commit 13cb44f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsproject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,8 @@ bool QgsProject::readProjectFile( const QString &filename )
10391039
QgsMessageLog::logMessage( tr( "Project Variables Invalid" ), tr( "The project contains invalid variable settings." ) );
10401040
}
10411041
emit customVariablesChanged();
1042+
emit crsChanged();
1043+
emit ellipsoidChanged( ellipsoid() );
10421044

10431045
// read the project: used by map canvas and legend
10441046
emit readProject( *doc );
@@ -1048,8 +1050,6 @@ bool QgsProject::readProjectFile( const QString &filename )
10481050
setDirty( false );
10491051

10501052
emit nonIdentifiableLayersChanged( nonIdentifiableLayers() );
1051-
emit crsChanged();
1052-
emit ellipsoidChanged( ellipsoid() );
10531053

10541054
return true;
10551055
}

0 commit comments

Comments
 (0)