Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
betetr use qgsDoubleNear
  • Loading branch information
luipir committed Feb 1, 2019
1 parent 78d9488 commit a9fcfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgssinglebandgrayrenderer.cpp
Expand Up @@ -283,7 +283,7 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
QgsRasterBandStats myRasterBandStats = mInput->bandStatistics( grayBand(), QgsRasterBandStats::Min | QgsRasterBandStats::Max );

// if minimum range differ from the real minimum => set is in exported SLD vendor option
if ( contrastEnhancement()->minimumValue() != myRasterBandStats.minimumValue )
if ( !qgsDoubleNear( contrastEnhancement()->minimumValue(), myRasterBandStats.minimumValue ) )
{
// look for VendorOption tag to look for that with minValue attribute
QDomNodeList elements = contrastEnhancementElem.elementsByTagName( QStringLiteral( "sld:VendorOption" ) );
Expand Down

0 comments on commit a9fcfe9

Please sign in to comment.