Skip to content
Permalink
Browse files

Fix crash in stats summary on debug builds

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent 538e790 commit e8ad45d705c73f6e524d9464936af492f4f95732
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()
{
mCount = 0;
@@ -88,7 +88,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 e8ad45d

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