Skip to content

Commit

Permalink
Fix bugs causing a crash when histogram is gathered due to uninitilis…
Browse files Browse the repository at this point in the history
…ed histogram vector
  • Loading branch information
timlinux committed Jun 30, 2011
1 parent 664317f commit 7d145a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/raster/qgsrasterbandstats.h
Expand Up @@ -45,6 +45,7 @@ class CORE_EXPORT QgsRasterBandStats
stdDev = 0.0;
sum = 0.0;
elementCount = 0;
histogramVector = new HistogramVector();
isHistogramEstimated = false;
isHistogramOutOfRange = false;
}
Expand Down

0 comments on commit 7d145a9

Please sign in to comment.