summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-24 01:43:14 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-24 01:43:14 +0000
commit9dd56383d3173d8a969c7eaa1eb336c97d1427c1 (patch)
treed4843523e236bd29075083e8ec8f290a975d86dd /libs
parent77077828d223c00ee5630d0e1338338bc9721fc6 (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/2.0-ongoing@12412 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/curve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/curve.cc b/libs/ardour/curve.cc
index 94b6ed8530..848e68558d 100644
--- a/libs/ardour/curve.cc
+++ b/libs/ardour/curve.cc
@@ -418,7 +418,7 @@ Curve::multipoint_eval (double x)
if (range.first == events.begin()) {
/* we're before the first point */
// return default_value;
- events.front()->value;
+ return events.front()->value;
}
if (range.second == events.end()) {