Skip to content
Permalink
Browse files
fix #4971
  • Loading branch information
jef-n committed Feb 9, 2012
1 parent afa452f commit 549d96c22669df14a32e242820d7947fe6fb7c7c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/legend/qgslegend.cpp
@@ -856,7 +856,8 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
// first layer?
if ( layers().count() == 1 )
{
mMapCanvas->mapRenderer()->setDestinationCrs( layer->crs() );
if ( !mMapCanvas->mapRenderer()->hasCrsTransformEnabled() )
mMapCanvas->mapRenderer()->setDestinationCrs( layer->crs() );
mMapCanvas->zoomToFullExtent();
mMapCanvas->clearExtentHistory();
}

0 comments on commit 549d96c

Please sign in to comment.