(1) do not write sequential same-value automation data into a ControlList (2) thin...
[ardour.git] / libs / ardour / automation_list.cc
index 2e28bb8bb16bb82acd835b0af440ac0a406d3b52..0810d2f2d007bb45c59eb8970d76e3048f6f5357 100644 (file)
@@ -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;