Skip to content
Permalink
Browse files

Fix crash in stats summary on debug builds

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent fc41d55 commit ba63f39d44910a9a39c071f467836d6512af9736
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 ba63f39

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