Skip to content

Commit

Permalink
also consider layer crs, when initially zooming to the extent of the …
Browse files Browse the repository at this point in the history
…first layer
  • Loading branch information
jef-n committed Jan 29, 2012
1 parent 215e05b commit c0cbe53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/legend/qgslegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
// first layer?
if ( layers().count() == 1 )
{
mMapCanvas->mapRenderer()->setDestinationCrs( layer->crs() );
mMapCanvas->zoomToFullExtent();
mMapCanvas->clearExtentHistory();
}
Expand Down

0 comments on commit c0cbe53

Please sign in to comment.