We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c4c7f commit 847650eCopy full SHA for 847650e
src/app/legend/qgslegend.cpp
@@ -937,7 +937,10 @@ void QgsLegend::addLayers( QList<QgsMapLayer *> theLayerList )
937
{
938
QgsMapLayer * myFirstLayer = theLayerList.at( 0 );
939
if ( !mMapCanvas->mapRenderer()->hasCrsTransformEnabled() )
940
+ {
941
mMapCanvas->mapRenderer()->setDestinationCrs( myFirstLayer->crs() );
942
+ mMapCanvas->mapRenderer()->setMapUnits( myFirstLayer->crs().mapUnits() );
943
+ }
944
mMapCanvas->zoomToFullExtent();
945
mMapCanvas->clearExtentHistory();
946
}
0 commit comments