Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rotated ticks followup : accept uppercase data defined strings
  • Loading branch information
olivierdalang authored and nyalldawson committed Oct 7, 2020
1 parent 6409bce commit 07d869a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -1914,13 +1914,13 @@ bool QgsLayoutItemMapGrid::shouldShowForDisplayMode( QgsLayoutItemMapGrid::Annot

QgsLayoutItemMapGrid::DisplayMode gridAnnotationDisplayModeFromDD( QString ddValue, QgsLayoutItemMapGrid::DisplayMode defValue )
{
if ( ddValue == QStringLiteral( "x_only" ) )
if ( ddValue.toLower() == QStringLiteral( "x_only" ) )
return QgsLayoutItemMapGrid::LatitudeOnly;
else if ( ddValue == QStringLiteral( "y_only" ) )
else if ( ddValue.toLower() == QStringLiteral( "y_only" ) )
return QgsLayoutItemMapGrid::LongitudeOnly;
else if ( ddValue == QStringLiteral( "disabled" ) )
else if ( ddValue.toLower() == QStringLiteral( "disabled" ) )
return QgsLayoutItemMapGrid::HideAll;
else if ( ddValue == QStringLiteral( "all" ) )
else if ( ddValue.toLower() == QStringLiteral( "all" ) )
return QgsLayoutItemMapGrid::ShowAll;
else
return defValue;
Expand Down

0 comments on commit 07d869a

Please sign in to comment.