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 1084ec5 commit 3358e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/raster/qgsrasterbandstats.h
Expand Up @@ -46,6 +46,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 3358e17

Please sign in to comment.