summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-02-20 14:07:42 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-02-20 14:15:31 -0500
commit950981996ffa957e668fb59c9fd0ba5468816bd6 (patch)
treea7bbb8b0cea416229b59a3e4823902c9b9355422 /gtk2_ardour/editor_mouse.cc
parent1701c9c78bd2dae6b033c1c4b2ac56dc3fcb8ec9 (diff)
add the with-guard-point distinction to region gain lines (imported from cairocanvas)
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 9e19578ce7..8c515636fb 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -1702,7 +1702,8 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
*/
AudioRegionView* arv = dynamic_cast<AudioRegionView*> (clicked_regionview);
if (!were_dragging && arv) {
- arv->add_gain_point_event (item, event);
+ bool with_guard_points = !Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier);
+ arv->add_gain_point_event (item, event, with_guard_points);
}
return true;
break;