Skip to content
Permalink
Browse files

Merge pull request #2855 from gvellut/master

Correct initialization of Max
  • Loading branch information
m-kuhn committed Feb 29, 2016
2 parents e097d6e + 8a47b5c commit 7caf47bf84d330e488efd96a49df281735f2a7f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/vector/qgszonalstatistics.h
@@ -67,7 +67,7 @@ class ANALYSIS_EXPORT QgsZonalStatistics
{
reset();
}
void reset() { sum = 0; count = 0; max = FLT_MIN; min = FLT_MAX; valueCount.clear(); values.clear(); }
void reset() { sum = 0; count = 0; max = -FLT_MAX; min = FLT_MAX; valueCount.clear(); values.clear(); }
void addValue( float value, double weight = 1.0 )
{
if ( weight < 1.0 )

0 comments on commit 7caf47b

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