fix bug that has existed since rev 17 when evaluating a curve in a position before...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 24 May 2012 01:43:14 +0000 (01:43 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 24 May 2012 01:43:14 +0000 (01:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12412 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/curve.cc

index 94b6ed853030a72a23e83335ef523e319cf51f33..848e68558d1eeca04253b1c88ffc36a8dcda45ca 100644 (file)
@@ -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()) {