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:02 +0000 (01:43 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 24 May 2012 01:43:02 +0000 (01:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12411 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/Curve.cpp

index 61f00198c1fdbb7095f2d0107414112f83b947cb..81faee70d3148171b14a3f2ac6626a565ae38896 100644 (file)
@@ -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()) {