File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ QgsStatisticalSummary::QgsStatisticalSummary( Statistics stats )
30
30
reset ();
31
31
}
32
32
33
+ void QgsStatisticalSummary::setStatistics ( QgsStatisticalSummary::Statistics stats )
34
+ {
35
+ mStatistics = stats;
36
+ reset ();
37
+ }
38
+
33
39
void QgsStatisticalSummary::reset ()
34
40
{
35
41
mFirst = std::numeric_limits<double >::quiet_NaN ();
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class CORE_EXPORT QgsStatisticalSummary
90
90
* \param stats flags for statistics to calculate
91
91
* \see statistics
92
92
*/
93
- void setStatistics ( QgsStatisticalSummary::Statistics stats ) { mStatistics = stats; }
93
+ void setStatistics ( QgsStatisticalSummary::Statistics stats );
94
94
95
95
/* *
96
96
* Resets the calculated values
You can’t perform that action at this time.
0 commit comments