diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-31 13:25:29 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-31 13:25:29 +0000 |
commit | 9c8a27c66405736078500b23b622c2373c89719f (patch) | |
tree | 387ffdf3d3e5496cd8c99b43286a825e800b42c4 /libs/evoral | |
parent | 54ff6901a96c7b77fbdc0abdc79224b763872c13 (diff) |
Don't round control list events when x-scaling them; prevents large loss of accuracy with xfades when they are scaled to be small and then expanded again (#4602).
git-svn-id: svn://localhost/ardour2/branches/3.0@11125 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral')
-rw-r--r-- | libs/evoral/src/ControlList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp index d3532eaefe..c31bd3421d 100644 --- a/libs/evoral/src/ControlList.cpp +++ b/libs/evoral/src/ControlList.cpp @@ -211,7 +211,7 @@ void ControlList::_x_scale (double factor) { for (iterator i = _events.begin(); i != _events.end(); ++i) { - (*i)->when = floor ((*i)->when * factor); + (*i)->when *= factor; } mark_dirty (); |