We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f7d5912 commit 54dcc34Copy full SHA for 54dcc34
src/core/raster/qgsrastershader.cpp
@@ -170,7 +170,7 @@ void QgsRasterShader::readXml( const QDomElement& elem )
170
if ( !colorRampShaderElem.isNull() )
171
{
172
QgsColorRampShader* colorRampShader = new QgsColorRampShader();
173
- colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName", QString() ) );
+ colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName" ) );
174
colorRampShader->setColorRampType( colorRampShaderElem.attribute( QStringLiteral( "colorRampType" ), QStringLiteral( "INTERPOLATED" ) ) );
175
colorRampShader->setClip( colorRampShaderElem.attribute( QStringLiteral( "clip" ), QStringLiteral( "0" ) ) == QLatin1String( "1" ) );
176
0 commit comments