From 822ee79d840f20036b5729277f90e641cb0bb06f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Aug 2010 22:43:10 +0000 Subject: Limit region-based automation to the edges of regions. Fixes #3201. git-svn-id: svn://localhost/ardour2/branches/3.0@7662 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_line.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gtk2_ardour/automation_line.cc') diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index bf8b5c51b1..052691cb60 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -65,6 +65,7 @@ AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanv , alist (al) , _parent_group (parent) , _time_converter (converter ? (*converter) : default_converter) + , _maximum_time (max_frames) { points_visible = false; update_pending = false; @@ -1322,3 +1323,12 @@ AutomationLine::memento_command_binder () { return new SimpleMementoCommandBinder (*alist.get()); } + +/** Set the maximum time that points on this line can be at, relative + * to the start of the track or region that it is on. + */ +void +AutomationLine::set_maximum_time (framepos_t t) +{ + _maximum_time = t; +} -- cgit v1.2.3