diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-04 05:05:56 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-20 00:53:29 +1100 |
commit | 6fe6f95d04c5eb7a021343970323f679c2d01fdd (patch) | |
tree | 4540affa2dc3e1d9f8139a659c8e40f2d3a1d4b9 /gtk2_ardour | |
parent | 578a60b875da9c9bd378a972f77bfdae2500fd3b (diff) |
Fix for fine adjust overriding snap modifiers.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index d3e40adf12..2574ba803e 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -4113,7 +4113,7 @@ ControlPointDrag::motion (GdkEvent* event, bool first_motion) double dx = _drags->current_pointer_x() - last_pointer_x(); double dy = current_pointer_y() - last_pointer_y(); - if (event->button.state & ArdourKeyboard::fine_adjust_modifier ()) { + if (Keyboard::modifier_state_equals (event->button.state, ArdourKeyboard::fine_adjust_modifier ())) { dx *= 0.1; dy *= 0.1; } @@ -4253,7 +4253,7 @@ LineDrag::motion (GdkEvent* event, bool first_move) { double dy = current_pointer_y() - last_pointer_y(); - if (event->button.state & ArdourKeyboard::fine_adjust_modifier ()) { + if (Keyboard::modifier_state_equals (event->button.state, ArdourKeyboard::fine_adjust_modifier ())) { dy *= 0.1; } |