Skip to content
Permalink
Browse files

Fix crash in ui while working with map grids

  • Loading branch information
nyalldawson committed Dec 12, 2017
1 parent c7abf46 commit ab7873cd238422360ca12b41b61e15f452252ec7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layout/qgslayoutitemmapgrid.cpp
@@ -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 )

0 comments on commit ab7873c

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