Skip to content

Commit

Permalink
[mapcanvas] Fix project full extent transform's destination crs
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 29, 2020
1 parent ae5e4db commit 6d82949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1079,7 +1079,7 @@ QgsRectangle QgsMapCanvas::extent() const
QgsRectangle QgsMapCanvas::fullExtent() const
{
const QgsReferencedRectangle extent = QgsProject::instance()->viewSettings()->fullExtent();
QgsCoordinateTransform ct( extent.crs(), QgsProject::instance()->crs(), QgsProject::instance()->transformContext() );
QgsCoordinateTransform ct( extent.crs(), mapSettings().destinationCrs(), QgsProject::instance()->transformContext() );
ct.setBallparkTransformsAreAppropriate( true );
QgsRectangle rect;
try
Expand Down

0 comments on commit 6d82949

Please sign in to comment.