Skip to content
Permalink
Browse files

typo

  • Loading branch information
luipir committed Feb 1, 2019
1 parent 5236b2f commit 0d1144793df8c131bea41939e6a299abe69ea9f4
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/raster/qgsrasterrenderer.cpp
@@ -159,14 +159,14 @@ void QgsRasterRenderer::toSld( QDomDocument &doc, QDomElement &element, const Qg
{
QgsStringMap newProps = props;

QDomElement rasterSymolizerElem = doc.createElement( QStringLiteral( "sld:RasterSymbolizer" ) );
element.appendChild( rasterSymolizerElem );
QDomElement rasterSymbolizerElem = doc.createElement( QStringLiteral( "sld:RasterSymbolizer" ) );
element.appendChild( rasterSymbolizerElem );

// add opacity only is different from default
if ( !qgsDoubleNear( opacity(), 1.0 ) )
{
QDomElement opacityElem = doc.createElement( QStringLiteral( "sld:Opacity" ) );
opacityElem.appendChild( doc.createTextNode( QString::number( opacity() ) ) );
rasterSymolizerElem.appendChild( opacityElem );
rasterSymbolizerElem.appendChild( opacityElem );
}
}

0 comments on commit 0d11447

Please sign in to comment.
You can’t perform that action at this time.