Commit ab91b07b authored by Simon Eugster's avatar Simon Eugster
Browse files

setPixel out of range problem fixed in Vectorscope

svn path=/trunk/kdenlive/; revision=4632
parent b4bd636d
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment