Skip to content
Permalink
Browse files

[layouts] Fix map grids not correctly respecting grid annotation

settings

Fixes #18036
  • Loading branch information
nyalldawson committed Feb 5, 2018
1 parent 4287ce4 commit e44c3606e588c0e21f90e335b450a503342e3450
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layout/qgslayoutitemmapgrid.cpp
@@ -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

0 comments on commit e44c360

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