Skip to content

Commit

Permalink
fix mesh scalar rendering for value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Mar 21, 2019
1 parent af06cf0 commit 7cb1695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/mesh/qgsmeshlayerinterpolator.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int QgsMeshLayerInterpolator::bandCount() const
QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback ) QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback )
{ {
std::unique_ptr<QgsRasterBlock> outputBlock( new QgsRasterBlock( Qgis::Float64, width, height ) ); 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->setNoDataValue( noDataValue );
outputBlock->setIsNoData(); // assume initially that all values are unset outputBlock->setIsNoData(); // assume initially that all values are unset
double *data = reinterpret_cast<double *>( outputBlock->bits() ); double *data = reinterpret_cast<double *>( outputBlock->bits() );
Expand Down Expand Up @@ -146,7 +146,7 @@ QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent


} }


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


///@endcond ///@endcond
Expand Down

0 comments on commit 7cb1695

Please sign in to comment.