Skip to content
Permalink
Browse files

Fix crash in stats summary on debug builds

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent 9820e6b commit 25980ab0ceedaf4ed0334b1b149a7f5a8c1e6af3
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/core/qgsstatisticalsummary.cpp
  2. +1 −1 src/core/qgsstatisticalsummary.h
@@ -30,6 +30,12 @@ QgsStatisticalSummary::QgsStatisticalSummary( Statistics stats )
reset();
}

void QgsStatisticalSummary::setStatistics( QgsStatisticalSummary::Statistics stats )
{
mStatistics = stats;
reset();
}

void QgsStatisticalSummary::reset()
{
mFirst = std::numeric_limits<double>::quiet_NaN();
@@ -90,7 +90,7 @@ class CORE_EXPORT QgsStatisticalSummary
* \param stats flags for statistics to calculate
* \see statistics
*/
void setStatistics( QgsStatisticalSummary::Statistics stats ) { mStatistics = stats; }
void setStatistics( QgsStatisticalSummary::Statistics stats );

/**
* Resets the calculated values

0 comments on commit 25980ab

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