From b04ea33f18dcb3435993e9a8d184c88611003400 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 18 Jun 2021 12:45:09 -0600 Subject: [PATCH] move Drag::_earliest_time_limit to be protected, not private --- gtk2_ardour/editor_drag.cc | 2 +- gtk2_ardour/editor_drag.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 0cfa0c8163..f3db53358a 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -260,6 +260,7 @@ Drag::Drag (Editor* e, ArdourCanvas::Item* i, bool trackview_only) , _x_constrained (false) , _y_constrained (false) , _was_rolling (false) + , _earliest_time_limit (0) , _trackview_only (trackview_only) , _move_threshold_passed (false) , _starting_point_passed (false) @@ -272,7 +273,6 @@ Drag::Drag (Editor* e, ArdourCanvas::Item* i, bool trackview_only) , _raw_grab_sample (0) , _grab_sample (0) , _last_pointer_sample (0) - , _earliest_time_limit (0) , _snap_delta (0) , _snap_delta_music (0.0) , _constraint_pressed (false) diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 17e9ef7296..64ce55ca57 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -289,6 +289,7 @@ protected: bool _x_constrained; ///< true if x motion is constrained, otherwise false bool _y_constrained; ///< true if y motion is constrained, otherwise false bool _was_rolling; ///< true if the session was rolling before the drag started, otherwise false + ARDOUR::samplepos_t _earliest_time_limit; ///< time we cannot drag before (defaults to 0, indicating no such limit) private: bool _trackview_only; ///< true if pointer y value should always be relative to the top of the trackview group @@ -303,7 +304,6 @@ private: ARDOUR::samplepos_t _raw_grab_sample; ///< unsnapped sample that the mouse was at when start_grab was called, or 0 ARDOUR::samplepos_t _grab_sample; ///< adjusted_sample that the mouse was at when start_grab was called, or 0 ARDOUR::samplepos_t _last_pointer_sample; ///< adjusted_sample the last time a motion occurred - ARDOUR::samplepos_t _earliest_time_limit; ///< time we cannot drag before (defaults to 0, indicating no such limit) /* difference between some key position's snapped and unsnapped * samplepos. used for relative snap.