Skip to content
Permalink
Browse files
Fix encoding scale to sld
  • Loading branch information
nyalldawson committed Oct 1, 2018
1 parent b5476ef commit be01ea881046a43c6e848a540056e17925cf5174
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology/qgssymbollayerutils.cpp
@@ -4189,14 +4189,14 @@ void QgsSymbolLayerUtils::applyScaleDependency( QDomDocument &doc, QDomElement &
if ( !props.value( QStringLiteral( "scaleMinDenom" ), QString() ).isEmpty() )
{
QDomElement scaleMinDenomElem = doc.createElement( QStringLiteral( "se:MinScaleDenominator" ) );
scaleMinDenomElem.appendChild( doc.createTextNode( props.value( QStringLiteral( "scaleMinDenom" ), QString() ) ) );
scaleMinDenomElem.appendChild( doc.createTextNode( qgsDoubleToString( props.value( QStringLiteral( "scaleMinDenom" ) ).toDouble() ) ) );
ruleElem.appendChild( scaleMinDenomElem );
}

if ( !props.value( QStringLiteral( "scaleMaxDenom" ), QString() ).isEmpty() )
{
QDomElement scaleMaxDenomElem = doc.createElement( QStringLiteral( "se:MaxScaleDenominator" ) );
scaleMaxDenomElem.appendChild( doc.createTextNode( props.value( QStringLiteral( "scaleMaxDenom" ), QString() ) ) );
scaleMaxDenomElem.appendChild( doc.createTextNode( qgsDoubleToString( props.value( QStringLiteral( "scaleMaxDenom" ) ).toDouble() ) ) );
ruleElem.appendChild( scaleMaxDenomElem );
}
}

0 comments on commit be01ea8

Please sign in to comment.