Skip to content
Permalink
Browse files

also consider layer crs, when initially zooming to the extent of the …

…first layer
  • Loading branch information
jef-n committed Jan 29, 2012
1 parent 215e05b commit c0cbe53a788918b65cfe6d2790452ecbaa18f21b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/legend/qgslegend.cpp
@@ -856,6 +856,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
// first layer?
if ( layers().count() == 1 )
{
mMapCanvas->mapRenderer()->setDestinationCrs( layer->crs() );
mMapCanvas->zoomToFullExtent();
mMapCanvas->clearExtentHistory();
}

0 comments on commit c0cbe53

Please sign in to comment.
You can’t perform that action at this time.