Skip to content
Permalink
Browse files

removed unuseful parentheses + removed default + forgot an enum

  • Loading branch information
luipir committed Feb 12, 2019
1 parent 7a1e698 commit 39c654811757e38e124103373e9670b049b82979
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/core/raster/qgssinglebandgrayrenderer.cpp
@@ -274,8 +274,8 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
// to use real min/max values and in othere the actual edited min/max values
switch ( contrastEnhancement()->contrastEnhancementAlgorithm() )
{
case ( QgsContrastEnhancement::StretchAndClipToMinimumMaximum ):
case ( QgsContrastEnhancement::ClipToMinimumMaximum ):
case QgsContrastEnhancement::StretchAndClipToMinimumMaximum:
case QgsContrastEnhancement::ClipToMinimumMaximum:
{
// with this renderer export have to be check against real min/max values of the raster
QgsRasterBandStats myRasterBandStats = mInput->bandStatistics( grayBand(), QgsRasterBandStats::Min | QgsRasterBandStats::Max );
@@ -298,9 +298,11 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
}
break;
}
case ( QgsContrastEnhancement::NoEnhancement ):
case ( QgsContrastEnhancement::StretchToMinimumMaximum ):
default:
case QgsContrastEnhancement::UserDefinedEnhancement:
break;
case QgsContrastEnhancement::NoEnhancement:
break;
case QgsContrastEnhancement::StretchToMinimumMaximum:
break;
}

0 comments on commit 39c6548

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