Add a dedicated export method to MidiRegion
[ardour.git] / libs / ardour / automation_control.cc
index e0ebc00062e1b3dc751e9df7f796956fc0185eb8..e27da6ab08797f30badbec995de59bb33a57b136 100644 (file)
@@ -31,7 +31,7 @@
 #include "ardour/event_type_map.h"
 #include "ardour/session.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 #ifdef COMPILER_MSVC
 #include <float.h>
@@ -155,7 +155,8 @@ AutomationControl::set_automation_state (AutoState as)
                        AutomationWatch::instance().add_automation_watch (shared_from_this());
                } else if (as == Touch) {
                        if (alist()->empty()) {
-                               Control::set_double (val, _session.transport_frame(), true);
+                               Control::set_double (val, _session.current_start_frame (), true);
+                               Control::set_double (val, _session.current_end_frame (), true);
                                Changed (true, Controllable::NoGroup);
                        }
                        if (!touching()) {