Fix the tempo note-type hallucination.
[ardour.git] / libs / ardour / ardour / automation_list.h
index f317820b7f6adb15977087cdd1ffff8aa9166acc..a57460c31bb5cde87831e34c2cff0c467617ed36 100644 (file)
@@ -61,6 +61,10 @@ private:
        AutomationListProperty& operator= (AutomationListProperty const &);
 };
 
+/** AutomationList is a stateful wrapper around Evoral::ControlList.
+ * It includes session-specifics (such as automation state), control logic (e.g. touch, signals)
+ * and acts as proxy to the underlying ControlList which holds the actual data.
+ */
 class LIBARDOUR_API AutomationList : public PBD::StatefulDestructible, public Evoral::ControlList
 {
   public:
@@ -115,7 +119,7 @@ class LIBARDOUR_API AutomationList : public PBD::StatefulDestructible, public Ev
 
        bool operator!= (const AutomationList &) const;
 
-       XMLNode* before () { return _before; }
+       XMLNode* before () { XMLNode* rv = _before; _before = 0; return rv; }
        void clear_history ();
   private:
        void create_curve_if_necessary ();