Fix erroneous placement of new MIDI automation points in

regions with non-zero start (#4176).


git-svn-id: svn://localhost/ardour2/branches/3.0@9859 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-07-13 12:09:25 +00:00
parent 16db8b5972
commit dc900af74c

View file

@ -119,7 +119,7 @@ AutomationRegionView::canvas_event (GdkEvent* ev)
y = max (y, 0.0);
y = min (y, _height - NAME_HIGHLIGHT_SIZE);
add_automation_event (ev, trackview.editor().pixel_to_frame (x) - _region->position(), y);
add_automation_event (ev, trackview.editor().pixel_to_frame (x) - _region->position() + _region->start(), y);
}
return false;