Skip to content
Permalink
Browse files
Never set the main canvas CRS manually
Instead always rely on connection to project CRS changes
  • Loading branch information
nyalldawson committed Mar 15, 2017
1 parent a0073a3 commit 59ad7695fbae9585fdffcf2a074f169f95036046
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/qgsmapcanvas.cpp
@@ -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();

0 comments on commit 59ad769

Please sign in to comment.