tweak b7e645ec6, use session start/end position
authorRobin Gareus <robin@gareus.org>
Mon, 27 Jun 2016 22:17:46 +0000 (00:17 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 27 Jun 2016 22:17:46 +0000 (00:17 +0200)
libs/ardour/automation_control.cc

index e0ebc00062e1b3dc751e9df7f796956fc0185eb8..0d5c2ecc2d23cf90910ca4225d42e4524c6b29aa 100644 (file)
@@ -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()) {