summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-24 01:43:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-24 01:43:02 +0000
commitb99131f21e356d307df12230d85b0eccc02d0203 (patch)
tree8d40ad4fd7e902b25f7c4f83ef7b06ab6358b469 /libs
parent37bc04f2305d9f8cf812db8dedfc97815c1c6dca (diff)
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
Diffstat (limited to 'libs')
-rw-r--r--libs/evoral/src/Curve.cpp2
1 files changed, 1 insertions, 1 deletions
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()) {