Skip to content

Commit f819288

Browse files
committed
fix mesh scalar rendering for value 0
1 parent 567da1b commit f819288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/mesh/qgsmeshlayerinterpolator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int QgsMeshLayerInterpolator::bandCount() const
6969
QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback )
7070
{
7171
std::unique_ptr<QgsRasterBlock> outputBlock( new QgsRasterBlock( Qgis::Float64, width, height ) );
72-
const double noDataValue = std::numeric_limits<double>::min();
72+
const double noDataValue = std::numeric_limits<double>::quiet_NaN();
7373
outputBlock->setNoDataValue( noDataValue );
7474
outputBlock->setIsNoData(); // assume initially that all values are unset
7575
double *data = reinterpret_cast<double *>( outputBlock->bits() );
@@ -146,7 +146,7 @@ QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent
146146

147147
}
148148

149-
return outputBlock.release();;
149+
return outputBlock.release();
150150
}
151151

152152
///@endcond

0 commit comments

Comments
 (0)