diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-26 22:13:54 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-26 22:13:54 +0000 |
commit | 5f88b44245a91771dac888d2c0df0fc99aab06f7 (patch) | |
tree | 0685967d0762263067510611ed5acd3c0dea82a0 /libs/ardour/automation_list.cc | |
parent | 773d20f330c0fe3e816ca7c98bd48f3eeb5d47aa (diff) |
(1) do not write sequential same-value automation data into a ControlList (2) thin AutomationList data when reloading from disk (similar code as Ben's from ardour 2.X, but without user-adjustable thinning density at present). Should fix #4583 and maybe others caused by NaN's occuring from zero-slope lines
git-svn-id: svn://localhost/ardour2/branches/3.0@11078 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/automation_list.cc')
-rw-r--r-- | libs/ardour/automation_list.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 2e28bb8bb1..0810d2f2d0 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -366,6 +366,8 @@ AutomationList::deserialize_events (const XMLNode& node) fast_simple_add (x, y); } + thin (); + if (!ok) { clear (); error << _("automation list: cannot load coordinates from XML, all points ignored") << endmsg; @@ -427,6 +429,8 @@ AutomationList::set_state (const XMLNode& node, int version) fast_simple_add (x, y); } + thin (); + thaw (); return 0; |