Skip to content
Permalink
Browse files

[layouts] Use correct transform context for map grids

Fixes #17984
  • Loading branch information
nyalldawson committed Jan 28, 2018
1 parent f9a8161 commit 6f364fdba57ea35b9a29cc4f7e5e44ba528ab049
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/layout/qgslayoutitemmapgrid.cpp
@@ -2329,8 +2329,7 @@ int QgsLayoutItemMapGrid::crsGridParams( QgsRectangle &crsRect, QgsCoordinateTra
crsRect = tr.transformBoundingBox( mapBoundingRect );
}

inverseTransform.setSourceCrs( mCRS );
inverseTransform.setDestinationCrs( mMap->crs() );
inverseTransform = QgsCoordinateTransform( mCRS, mMap->crs(), mLayout->project() );
}
catch ( QgsCsException &cse )
{

0 comments on commit 6f364fd

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