Skip to content

Commit 7d145a9

Browse files
committedJun 30, 2011
Fix bugs causing a crash when histogram is gathered due to uninitilised histogram vector
1 parent 664317f commit 7d145a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/raster/qgsrasterbandstats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class CORE_EXPORT QgsRasterBandStats
4545
stdDev = 0.0;
4646
sum = 0.0;
4747
elementCount = 0;
48+
histogramVector = new HistogramVector();
4849
isHistogramEstimated = false;
4950
isHistogramOutOfRange = false;
5051
}

0 commit comments

Comments
 (0)
Please sign in to comment.