Skip to content

Commit

Permalink
removed default and manage forgot enum
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Feb 12, 2019
1 parent a5866df commit be6968e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/raster/qgssinglebandgrayrenderer.cpp
Expand Up @@ -340,16 +340,16 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
colorMapping.append( QPair< QString, QColor >( highValue, highColor ) );
break;
}
case ( QgsContrastEnhancement::NoEnhancement ):
break;
case ( QgsContrastEnhancement::StretchToMinimumMaximum ):
// use default
default:
{
colorMapping[0].first = QStringLiteral( "0" );
colorMapping[1].first = QStringLiteral( "255" );
break;
}
case ( QgsContrastEnhancement::UserDefinedEnhancement ):
break;
case ( QgsContrastEnhancement::NoEnhancement ):
break;
}

// create tags
Expand Down

0 comments on commit be6968e

Please sign in to comment.