Skip to content
Permalink
Browse files

fix mesh scalar rendering for value 0

  • Loading branch information
PeterPetrik committed Mar 20, 2019
1 parent 567da1b commit f8192880ac4933df78e642d297f1119b30881bf5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/mesh/qgsmeshlayerinterpolator.cpp
@@ -69,7 +69,7 @@ int QgsMeshLayerInterpolator::bandCount() const
QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback )
{
std::unique_ptr<QgsRasterBlock> outputBlock( new QgsRasterBlock( Qgis::Float64, width, height ) );
const double noDataValue = std::numeric_limits<double>::min();
const double noDataValue = std::numeric_limits<double>::quiet_NaN();
outputBlock->setNoDataValue( noDataValue );
outputBlock->setIsNoData(); // assume initially that all values are unset
double *data = reinterpret_cast<double *>( outputBlock->bits() );
@@ -146,7 +146,7 @@ QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent

}

return outputBlock.release();;
return outputBlock.release();
}

///@endcond

0 comments on commit f819288

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