From: Till Theato Date: Fri, 3 Sep 2010 14:26:37 +0000 (+0000) Subject: Do not allow to change x position of first point in curve widget, as this is not... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bcac2e80e3900f598830fd66d27facfdad129bd7;p=kdenlive Do not allow to change x position of first point in curve widget, as this is not possible in frei0r.curves: http://kdenlive.org/mantis/view.php?id=1792 svn path=/trunk/kdenlive/; revision=4823 --- diff --git a/src/kis_curve_widget.cpp b/src/kis_curve_widget.cpp index bf34f0dc..73edfd59 100644 --- a/src/kis_curve_widget.cpp +++ b/src/kis_curve_widget.cpp @@ -429,10 +429,11 @@ void KisCurveWidget::mouseMoveEvent(QMouseEvent * e) double rightX; if (d->m_grab_point_index == 0) { leftX = 0.0; - if (d->m_curve.points().count() > 1) + rightX = 0.0; + /*if (d->m_curve.points().count() > 1) rightX = d->m_curve.points()[d->m_grab_point_index + 1].x() - POINT_AREA; else - rightX = 1.0; + rightX = 1.0;*/ } else if (d->m_grab_point_index == d->m_curve.points().count() - 1) { leftX = d->m_curve.points()[d->m_grab_point_index - 1].x() + POINT_AREA; rightX = 1.0;