Skip to content
Permalink
Browse files

Fix crash in stats summary on debug builds

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent 6800b3d commit bdf062a92651734121bc563b5dcb3af6bd6eca03
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 bdf062a

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