Skip to content

Commit c0cbe53

Browse files
committedJan 29, 2012
also consider layer crs, when initially zooming to the extent of the first layer
1 parent 215e05b commit c0cbe53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/app/legend/qgslegend.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
856856
// first layer?
857857
if ( layers().count() == 1 )
858858
{
859+
mMapCanvas->mapRenderer()->setDestinationCrs( layer->crs() );
859860
mMapCanvas->zoomToFullExtent();
860861
mMapCanvas->clearExtentHistory();
861862
}

0 commit comments

Comments
 (0)
Please sign in to comment.