Skip to content

Commit 54dcc34

Browse files
committedNov 2, 2016
default value does not need to be explicitly set
1 parent f7d5912 commit 54dcc34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/raster/qgsrastershader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void QgsRasterShader::readXml( const QDomElement& elem )
170170
if ( !colorRampShaderElem.isNull() )
171171
{
172172
QgsColorRampShader* colorRampShader = new QgsColorRampShader();
173-
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName", QString() ) );
173+
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName" ) );
174174
colorRampShader->setColorRampType( colorRampShaderElem.attribute( QStringLiteral( "colorRampType" ), QStringLiteral( "INTERPOLATED" ) ) );
175175
colorRampShader->setClip( colorRampShaderElem.attribute( QStringLiteral( "clip" ), QStringLiteral( "0" ) ) == QLatin1String( "1" ) );
176176

0 commit comments

Comments
 (0)
Please sign in to comment.