Amend last commit.
authornick_m <mainsbridge@gmail.com>
Sun, 13 Sep 2015 19:46:02 +0000 (05:46 +1000)
committernick_m <mainsbridge@gmail.com>
Mon, 19 Oct 2015 13:53:27 +0000 (00:53 +1100)
gtk2_ardour/audio_region_view.cc

index dd1552901994c102fd03cf6a86a8cf216f485467..ddb1edfdeedc9bc4a8c4a8f9ecf2f9c05f471179 100644 (file)
@@ -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.
        */