]> git.sesse.net Git - kdenlive/blobdiff - src/colorcorrection/levelsgenerator.cpp
Fixed: setPixel at 255 out of range.
[kdenlive] / src / colorcorrection / levelsgenerator.cpp
index b2b4a91d6144f8a8edb156f152f429f7988cc30f..ecf444dfbabcd0575aacc894cdc962a471340ba7 100644 (file)
@@ -113,7 +113,7 @@ QImage LevelsGenerator::calculateLevels(const QSize &paradeSize, const QImage &i
 
 QImage LevelsGenerator::drawComponent(const int *y, const QSize &size, const float &scaling, const QColor &color, const bool &unscaled) const
 {
-    QImage component(255, size.height(), QImage::Format_ARGB32);
+    QImage component(256, size.height(), QImage::Format_ARGB32);
     component.fill(qRgba(0, 0, 0, 0));
 
     const int partH = size.height();