Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #4971
  • Loading branch information
jef-n committed Feb 9, 2012
1 parent afa452f commit 549d96c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/legend/qgslegend.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit 549d96c

Please sign in to comment.