From 402c6e6f59207009cb1994fda387f2c852d0bd89 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Fri, 4 Jun 2021 14:14:46 +0200 Subject: [PATCH] Fix geographicflag loading Fixes #43556 --- src/core/proj/qgscoordinatereferencesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/proj/qgscoordinatereferencesystem.cpp b/src/core/proj/qgscoordinatereferencesystem.cpp index f5cd1ac23023..77c7081e455d 100644 --- a/src/core/proj/qgscoordinatereferencesystem.cpp +++ b/src/core/proj/qgscoordinatereferencesystem.cpp @@ -1835,7 +1835,7 @@ bool QgsCoordinateReferenceSystem::readXml( const QDomNode &node ) d->mEllipsoidAcronym = node.toElement().text(); node = srsNode.namedItem( QStringLiteral( "geographicflag" ) ); - d->mIsGeographic = node.toElement().text().compare( QLatin1String( "true" ) ); + d->mIsGeographic = node.toElement().text() == QLatin1String( "true" ); d->mWktPreferred.clear();