Skip to content

Commit

Permalink
Fix crash in stats summary on debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent 538e790 commit e8ad45d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/core/qgsstatisticalsummary.cpp
Expand Up @@ -30,6 +30,12 @@ QgsStatisticalSummary::QgsStatisticalSummary( Statistics stats )
reset();
}

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

void QgsStatisticalSummary::reset()
{
mCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsstatisticalsummary.h
Expand Up @@ -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
Expand Down

0 comments on commit e8ad45d

Please sign in to comment.