Skip to content

Commit

Permalink
rotated ticks followup : adapt to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored and nyalldawson committed Oct 7, 2020
1 parent 96e0e9b commit 18e497d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 18e497d

Please sign in to comment.