Skip to content

Commit 2aa2040

Browse files
committed
Fix QgsStatisticalSummary sometimes returning 0 for StDevSample stat
1 parent 23dd501 commit 2aa2040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsstatisticalsummary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void QgsStatisticalSummary::calculate( const QList<double> &values )
6767

6868
mMean = mSum / mCount;
6969

70-
if ( mStatistics & QgsStatisticalSummary::StDev )
70+
if ( mStatistics & QgsStatisticalSummary::StDev || mStatistics & QgsStatisticalSummary::StDevSample )
7171
{
7272
double sumSquared = 0;
7373
Q_FOREACH ( double value, values )

0 commit comments

Comments
 (0)