From ab91b07b4dee7fbe303d45a2ab748da67d2f95b8 Mon Sep 17 00:00:00 2001 From: "Simon A. Eugster" Date: Fri, 23 Jul 2010 12:31:09 +0000 Subject: [PATCH] setPixel out of range problem fixed in Vectorscope svn path=/trunk/kdenlive/; revision=4632 --- src/colorcorrection/vectorscopegenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/colorcorrection/vectorscopegenerator.cpp b/src/colorcorrection/vectorscopegenerator.cpp index ca0e3aff..ad616497 100644 --- a/src/colorcorrection/vectorscopegenerator.cpp +++ b/src/colorcorrection/vectorscopegenerator.cpp @@ -123,8 +123,8 @@ QImage VectorscopeGenerator::calculateVectorscope(const QSize &vectorscopeSize, pt = mapToCircle(vectorscopeSize, QPointF(SCALING*gain*u, SCALING*gain*v)); - if (!(pt.x() <= vectorscopeSize.width() && pt.x() >= 0 - && pt.y() <= vectorscopeSize.height() && pt.y() >= 0)) { + if (pt.x() >= scope.width() || pt.x() < 0 + || pt.y() >= scope.height() || pt.y() < 0) { // Point lies outside (because of scaling), don't plot it } else { -- 2.39.2