From: Simon A. Eugster Date: Mon, 30 Aug 2010 16:06:15 +0000 (+0000) Subject: Histogram: Fixed random value of 256th index. Missed one int with std::fill. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0f3dedfa2f4f2426a9a4c8bce7aaa4191647e105;p=kdenlive Histogram: Fixed random value of 256th index. Missed one int with std::fill. svn path=/trunk/kdenlive/; revision=4782 --- diff --git a/src/colorcorrection/histogramgenerator.cpp b/src/colorcorrection/histogramgenerator.cpp index 53d54c76..970fc67b 100644 --- a/src/colorcorrection/histogramgenerator.cpp +++ b/src/colorcorrection/histogramgenerator.cpp @@ -33,10 +33,10 @@ QImage HistogramGenerator::calculateHistogram(const QSize ¶deSize, const QIm int r[256], g[256], b[256], y[256]; // Initialize the values to zero - std::fill(r, r+255, 0); - std::fill(g, g+255, 0); - std::fill(b, b+255, 0); - std::fill(y, y+255, 0); + std::fill(r, r+256, 0); + std::fill(g, g+256, 0); + std::fill(b, b+256, 0); + std::fill(y, y+256, 0); const uint iw = image.bytesPerLine(); const uint ih = image.height();