Skip to content
Permalink
Browse files

rotated ticks followup : adapt to PR comments

  • Loading branch information
olivierdalang authored and nyalldawson committed Oct 7, 2020
1 parent 96e0e9b commit 18e497d725cfebeade2612a184ad558ed57893c5
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/layout/qgslayoutitemmapgrid.cpp
@@ -1918,13 +1918,13 @@ bool QgsLayoutItemMapGrid::shouldShowForDisplayMode( QgsLayoutItemMapGrid::Annot

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

0 comments on commit 18e497d

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