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
This commit is contained in:
parent
37bc04f230
commit
b99131f21e
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user