Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash in ui while working with map grids
  • Loading branch information
nyalldawson committed Dec 17, 2017
1 parent c7abf46 commit ab7873c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -2028,11 +2028,11 @@ void QgsLayoutItemMapGrid::calculateMaxExtension( double &top, double &right, do
QList< QPair< double, QLineF > > horizontalLines;
if ( mGridUnit == MapUnit && mCRS.isValid() && mCRS != mMap->crs() )
{
drawGridCrsTransform( context, 0, horizontalLines, verticalLines, false );
drawGridCrsTransform( context, 0, horizontalLines, verticalLines, true );
}
else
{
drawGridNoTransform( context, 0, horizontalLines, verticalLines, false );
drawGridNoTransform( context, 0, horizontalLines, verticalLines, true );
}

if ( mGridFrameStyle != QgsLayoutItemMapGrid::NoFrame )
Expand Down

0 comments on commit ab7873c

Please sign in to comment.