Amend last commit.
This commit is contained in:
parent
17294ab9ec
commit
5afb645c9f
@ -1321,6 +1321,7 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev, b
|
||||
item->canvas_to_item (x, y);
|
||||
|
||||
framepos_t fx = trackview.editor().pixel_to_sample (x);
|
||||
trackview.editor ().snap_to_with_modifier (fx, ev);
|
||||
|
||||
if (fx > _region->length()) {
|
||||
return;
|
||||
@ -1334,8 +1335,6 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev, b
|
||||
|
||||
gain_line->view_to_model_coord (x, y);
|
||||
|
||||
trackview.editor ().snap_to_with_modifier (fx, ev);
|
||||
|
||||
/* XXX STATEFUL: can't convert to stateful diff until we
|
||||
can represent automation data with it.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user