Skip to content

Commit

Permalink
[layouts] Use correct transform context for map grids
Browse files Browse the repository at this point in the history
Fixes #17984
  • Loading branch information
nyalldawson committed Jan 28, 2018
1 parent f9a8161 commit 6f364fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 6f364fd

Please sign in to comment.