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 6bddc38
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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.