Fix adding of automation points to regions with a non-zero start (#4316).

git-svn-id: svn://localhost/ardour2/branches/3.0@10108 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2011-09-21 16:56:18 +00:00
parent 150ad3ae82
commit 8d84c69eec

View File

@@ -149,7 +149,7 @@ AutomationRegionView::add_automation_event (GdkEvent *, framepos_t when, double
/* snap frame */
when = snap_frame_to_frame (when - _region->start ());
when = snap_frame_to_frame (when - _region->start ()) + _region->start ();
/* map using line */