Navigation Menu

Skip to content

Commit

Permalink
Never set the main canvas CRS manually
Browse files Browse the repository at this point in the history
Instead always rely on connection to project CRS changes
  • Loading branch information
nyalldawson committed Mar 15, 2017
1 parent a0073a3 commit 59ad769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1874,7 +1874,11 @@ void QgsMapCanvas::readProject( const QDomDocument &doc )

QgsMapSettings tmpSettings;
tmpSettings.readXml( node );
setDestinationCrs( tmpSettings.destinationCrs() );
if ( objectName() != QStringLiteral( "theMapCanvas" ) )
{
// never manually set the crs for the main canvas - this is instead connected to the project CRS
setDestinationCrs( tmpSettings.destinationCrs() );
}
setExtent( tmpSettings.extent() );
setRotation( tmpSettings.rotation() );
mSettings.datumTransformStore() = tmpSettings.datumTransformStore();
Expand Down

0 comments on commit 59ad769

Please sign in to comment.