Skip to content

Commit

Permalink
Don't write layer vertical crs if its not set
Browse files Browse the repository at this point in the history
Avoids some unwanted extra noise in the xml
  • Loading branch information
nyalldawson committed May 8, 2024
1 parent 9e69ae9 commit 6301adf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsmaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ bool QgsMapLayer::writeLayerXml( QDomElement &layerElement, QDomDocument &docume

layerElement.appendChild( layerId );

if ( mVerticalCrs.isValid() )
{
QDomElement verticalSrsNode = document.createElement( QStringLiteral( "verticalCrs" ) );
mVerticalCrs.writeXml( verticalSrsNode, document );
Expand Down

0 comments on commit 6301adf

Please sign in to comment.