Vorbis Quality Config GUI
[ardour.git] / gtk2_ardour / region_view.cc
index daca24729712861af2ff07e3e32b4b6cb1446ebb..36c70f15b07650a32954f52d00574ad76000d935 100644 (file)
@@ -948,12 +948,12 @@ RegionView::snap_sample_to_sample (sampleoffset_t x, bool ensure_snap) const
 
        /* try a snap in either direction */
        MusicSample sample (session_sample, 0);
-       editor.snap_to (sample, RoundNearest, false, ensure_snap);
+       editor.snap_to (sample, RoundNearest, SnapToAny_Visual, ensure_snap);
 
        /* if we went off the beginning of the region, snap forwards */
        if (sample.sample < _region->position ()) {
                sample.sample = session_sample;
-               editor.snap_to (sample, RoundUpAlways, false, ensure_snap);
+               editor.snap_to (sample, RoundUpAlways, SnapToAny_Visual, ensure_snap);
        }
 
        /* back to region relative, keeping the relevant divisor */