mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 22:26:29 +01:00
Amend last commit.
This commit is contained in:
parent
05c7ebfde1
commit
ab49fea3df
1 changed files with 1 additions and 2 deletions
|
|
@ -1321,6 +1321,7 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev, b
|
||||||
item->canvas_to_item (x, y);
|
item->canvas_to_item (x, y);
|
||||||
|
|
||||||
framepos_t fx = trackview.editor().pixel_to_sample (x);
|
framepos_t fx = trackview.editor().pixel_to_sample (x);
|
||||||
|
trackview.editor ().snap_to_with_modifier (fx, ev);
|
||||||
|
|
||||||
if (fx > _region->length()) {
|
if (fx > _region->length()) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -1334,8 +1335,6 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev, b
|
||||||
|
|
||||||
gain_line->view_to_model_coord (x, y);
|
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
|
/* XXX STATEFUL: can't convert to stateful diff until we
|
||||||
can represent automation data with it.
|
can represent automation data with it.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue