Skip to content

Commit

Permalink
Merge pull request #2855 from gvellut/master
Browse files Browse the repository at this point in the history
Correct initialization of Max
  • Loading branch information
m-kuhn committed Feb 29, 2016
2 parents e097d6e + 8a47b5c commit 7caf47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/vector/qgszonalstatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 7caf47b

Please sign in to comment.