Skip to content

Commit ab7873c

Browse files
committed
Fix crash in ui while working with map grids
1 parent c7abf46 commit ab7873c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/layout/qgslayoutitemmapgrid.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2028,11 +2028,11 @@ void QgsLayoutItemMapGrid::calculateMaxExtension( double &top, double &right, do
20282028
QList< QPair< double, QLineF > > horizontalLines;
20292029
if ( mGridUnit == MapUnit && mCRS.isValid() && mCRS != mMap->crs() )
20302030
{
2031-
drawGridCrsTransform( context, 0, horizontalLines, verticalLines, false );
2031+
drawGridCrsTransform( context, 0, horizontalLines, verticalLines, true );
20322032
}
20332033
else
20342034
{
2035-
drawGridNoTransform( context, 0, horizontalLines, verticalLines, false );
2035+
drawGridNoTransform( context, 0, horizontalLines, verticalLines, true );
20362036
}
20372037

20382038
if ( mGridFrameStyle != QgsLayoutItemMapGrid::NoFrame )

0 commit comments

Comments
 (0)