From b99131f21e356d307df12230d85b0eccc02d0203 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 24 May 2012 01:43:02 +0000 Subject: fix bug that has existed since rev 17 when evaluating a curve in a position before the first point of the curve git-svn-id: svn://localhost/ardour2/branches/3.0@12411 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/evoral/src/Curve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/evoral/src/Curve.cpp b/libs/evoral/src/Curve.cpp index 61f00198c1..81faee70d3 100644 --- a/libs/evoral/src/Curve.cpp +++ b/libs/evoral/src/Curve.cpp @@ -374,7 +374,7 @@ Curve::multipoint_eval (double x) if (range.first == _list.events().begin()) { /* we're before the first point */ // return default_value; - _list.events().front()->value; + return _list.events().front()->value; } if (range.second == _list.events().end()) { -- cgit v1.2.3