Skip to content

Commit 3358e17

Browse files
committed
Fix bugs causing a crash when histogram is gathered due to uninitilised histogram vector
1 parent 1084ec5 commit 3358e17

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
@@ -46,6 +46,7 @@ class CORE_EXPORT QgsRasterBandStats
4646
stdDev = 0.0;
4747
sum = 0.0;
4848
elementCount = 0;
49+
histogramVector = new HistogramVector();
4950
isHistogramEstimated = false;
5051
isHistogramOutOfRange = false;
5152
}

0 commit comments

Comments
 (0)