Skip to content
Permalink
Browse files

default value does not need to be explicitly set

  • Loading branch information
alexbruy committed Nov 2, 2016
1 parent f7d5912 commit 54dcc347ae059b200451fdf5b77057ebc04a1b58
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsrastershader.cpp
@@ -170,7 +170,7 @@ void QgsRasterShader::readXml( const QDomElement& elem )
if ( !colorRampShaderElem.isNull() )
{
QgsColorRampShader* colorRampShader = new QgsColorRampShader();
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName", QString() ) );
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName" ) );
colorRampShader->setColorRampType( colorRampShaderElem.attribute( QStringLiteral( "colorRampType" ), QStringLiteral( "INTERPOLATED" ) ) );
colorRampShader->setClip( colorRampShaderElem.attribute( QStringLiteral( "clip" ), QStringLiteral( "0" ) ) == QLatin1String( "1" ) );

0 comments on commit 54dcc34

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