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 1, 2019
1 parent ad112ba commit 06e0580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/raster/qgssinglebandgrayrenderer.cpp
Expand Up @@ -342,16 +342,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 06e0580

Please sign in to comment.