Skip to content

Commit

Permalink
Merge pull request #60252 from nyalldawson/clean_xml
Browse files Browse the repository at this point in the history
Don't write custom profile tolerance to XML when not set
  • Loading branch information
troopa81 authored Jan 27, 2025
2 parents 9e25ade + 2add289 commit 388e80e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vector/qgsvectorlayerelevationproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ QDomElement QgsVectorLayerElevationProperties::writeXml( QDomElement &parentElem
element.setAttribute( QStringLiteral( "extrusionEnabled" ), mEnableExtrusion ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
element.setAttribute( QStringLiteral( "extrusion" ), qgsDoubleToString( mExtrusionHeight ) );
element.setAttribute( QStringLiteral( "customToleranceEnabled" ), mEnableCustomTolerance ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
element.setAttribute( QStringLiteral( "customTolerance" ), qgsDoubleToString( mCustomTolerance ) );
if ( mCustomTolerance != 0 )
element.setAttribute( QStringLiteral( "customTolerance" ), qgsDoubleToString( mCustomTolerance ) );
element.setAttribute( QStringLiteral( "clamping" ), qgsEnumValueToKey( mClamping ) );
element.setAttribute( QStringLiteral( "binding" ), qgsEnumValueToKey( mBinding ) );
element.setAttribute( QStringLiteral( "type" ), qgsEnumValueToKey( mType ) );
Expand Down

0 comments on commit 388e80e

Please sign in to comment.