Skip to content
Permalink
Browse files

rotated ticks followup : accept uppercase data defined strings

  • Loading branch information
olivierdalang authored and nyalldawson committed Oct 7, 2020
1 parent 6409bce commit 07d869acc9e6478e684c2c72593a33e7b2abc07e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/layout/qgslayoutitemmapgrid.cpp
@@ -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;

0 comments on commit 07d869a

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