From: Till Theato Date: Sun, 20 Feb 2011 18:52:12 +0000 (+0000) Subject: rotoscoping: X-Git-Url: https://git.sesse.net/?p=kdenlive;a=commitdiff_plain;h=306e8e3acf9cf4030ff75abff5063dfd40b6cf60 rotoscoping: - rename mode "matte" to "luma" - fix possible crash svn path=/trunk/kdenlive/; revision=5440 --- diff --git a/effects/rotoscoping.xml b/effects/rotoscoping.xml index 0a7bf072..9548f5c1 100644 --- a/effects/rotoscoping.xml +++ b/effects/rotoscoping.xml @@ -4,8 +4,8 @@ Keyframable vector based rotoscoping Till Theato - - Alpha,Matte,RGB + + Alpha,Luma,RGB Mode diff --git a/src/rotoscoping/rotowidget.cpp b/src/rotoscoping/rotowidget.cpp index d1c2133d..3d120c38 100644 --- a/src/rotoscoping/rotowidget.cpp +++ b/src/rotoscoping/rotowidget.cpp @@ -194,7 +194,8 @@ void RotoWidget::slotPositionChanged(int pos, bool seek) QList p; qreal relPos = (pos - keyframe1) / (qreal)(keyframe2 - keyframe1 + 1); - for (int i = 0; i < p1.count(); ++i) { + int count = qMin(p1.count(), p2.count()); + for (int i = 0; i < count; ++i) { BPoint bp; for (int j = 0; j < 3; ++j) { if (p1.at(i)[j] != p2.at(i)[j])