Skip to content
Permalink
Browse files

Fix QgsStatisticalSummary sometimes returning 0 for StDevSample stat

  • Loading branch information
nyalldawson committed Oct 19, 2015
1 parent 23dd501 commit 2aa2040e77b1682f00b4e00a4f19c8ff268e9499
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsstatisticalsummary.cpp
@@ -67,7 +67,7 @@ void QgsStatisticalSummary::calculate( const QList<double> &values )

mMean = mSum / mCount;

if ( mStatistics & QgsStatisticalSummary::StDev )
if ( mStatistics & QgsStatisticalSummary::StDev || mStatistics & QgsStatisticalSummary::StDevSample )
{
double sumSquared = 0;
Q_FOREACH ( double value, values )

0 comments on commit 2aa2040

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