From 0f3dedfa2f4f2426a9a4c8bce7aaa4191647e105 Mon Sep 17 00:00:00 2001 From: "Simon A. Eugster" Date: Mon, 30 Aug 2010 16:06:15 +0000 Subject: [PATCH] Histogram: Fixed random value of 256th index. Missed one int with std::fill. svn path=/trunk/kdenlive/; revision=4782 --- src/colorcorrection/histogramgenerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.39.2