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 20, 2019
1 parent b20e80a commit 4aad427
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 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 )
{
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() );
Expand Down Expand Up @@ -146,7 +146,7 @@ QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent

}

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

///@endcond
Expand Down

0 comments on commit 4aad427

Please sign in to comment.