Skip to content
Permalink
Browse files

Fix possible divide by 0 (Thanks to Coverity)

  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent ed5e4b6 commit 6bddc3827637cd06a3ec397834a832939717d534
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/analysis/interpolation/qgstininterpolator.cpp
@@ -125,7 +125,8 @@ void QgsTINInterpolator::initialize()
{
break;
}
mFeedback->setProgress( 100.0 * static_cast< double >( nProcessedFeatures ) / nFeatures );
if ( nFeatures > 0 )
mFeedback->setProgress( 100.0 * static_cast< double >( nProcessedFeatures ) / nFeatures );
}
insertData( &f, layer.zCoordInterpolation, layer.interpolationAttribute, layer.mInputType );
++nProcessedFeatures;

0 comments on commit 6bddc38

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