From 88477ace25dbf1c65b568be3bfb08dfd67623c13 Mon Sep 17 00:00:00 2001 From: nick_m Date: Sat, 23 May 2015 03:09:48 +1000 Subject: Fix inverted logic of SnapOff with snap modifiers pressed. - also clean up, rename and comment some previous hanges. --- gtk2_ardour/public_editor.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/public_editor.h') diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index 463d7614d2..951c3e9b0e 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -141,11 +141,14 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulDestructible, publi */ virtual void set_snap_threshold (double t) = 0; - /** Snap a value according to the current snap setting. */ + /** + * Snap a value according to the current snap setting. + * ensure_snap overrides SnapOff and magnetic snap + */ virtual void snap_to (framepos_t& first, ARDOUR::RoundMode direction = ARDOUR::RoundNearest, bool for_mark = false, - bool explicitly = false) = 0; + bool ensure_snap = false) = 0; /** Undo some transactions. * @param n Number of transactions to undo. -- cgit v1.2.3