Skip to content

Commit

Permalink
[layouts] Fix map grids not correctly respecting grid annotation
Browse files Browse the repository at this point in the history
settings

Fixes #18036
  • Loading branch information
nyalldawson committed Feb 5, 2018
1 parent 4287ce4 commit e44c360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -1458,10 +1458,10 @@ QString QgsLayoutItemMapGrid::gridAnnotationString( double value, QgsLayoutItemM
switch ( coord )
{
case Longitude:
return QgsCoordinateFormatter::formatX( value, format, flags );
return QgsCoordinateFormatter::formatX( value, format, mGridAnnotationPrecision, flags );

case Latitude:
return QgsCoordinateFormatter::formatY( value, format, flags );
return QgsCoordinateFormatter::formatY( value, format, mGridAnnotationPrecision, flags );
}

return QString(); // no warnings
Expand Down

0 comments on commit e44c360

Please sign in to comment.