summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-04-04 05:11:49 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:14 +1000
commit9e1a1b801f9857ec4d920d2211f776a38c75681f (patch)
treeaebfec08b9d3e97b5c46abfc4b73a5b6df1fb337 /gtk2_ardour
parent10d08a3be6531d563940a5be1d12a71154e14584 (diff)
Tempo ramps - fix copy/paste error.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index c7e96b27f7..a7e4d22df1 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3362,8 +3362,7 @@ TempoMarkerDrag::motion (GdkEvent* event, bool first_move)
framepos_t pf;
Tempo const tp = _marker->tempo();
-
- if (ArdourKeyboard::indicates_snap (event->button.state)) {
+ if (Keyboard::modifier_state_equals (event->button.state, ArdourKeyboard::constraint_modifier ())) {
double new_bpm = _real_section->beats_per_minute() + ((last_pointer_y() - current_pointer_y()) / 5.0);
_editor->session()->tempo_map().gui_change_tempo (_real_section, Tempo (new_bpm, _real_section->note_type()));
stringstream strs;
@@ -3383,7 +3382,7 @@ TempoMarkerDrag::motion (GdkEvent* event, bool first_move)
TempoMap& map (_editor->session()->tempo_map());
pf = adjusted_current_frame (event, false);
- if (Keyboard::modifier_state_equals (event->button.state, ArdourKeyboard::snap_modifier ())) {
+ if (ArdourKeyboard::indicates_snap (event->button.state)) {
if (_editor->snap_mode() == Editing::SnapOff) {
use_snap = true;
} else {