From 0b210042525b216acbbef2d10be99ffe5600c7c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 May 2012 21:02:36 +0000 Subject: [PATCH] Prevent x movement of the end points of region gain lines (should fix #4680). git-svn-id: svn://localhost/ardour2/branches/3.0@12461 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_drag.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index ad8319ffee..e3b7d06d35 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -2818,6 +2818,10 @@ ControlPointDrag::start_grab (GdkEvent* event, Gdk::Cursor* /*cursor*/) event->button.x + 10, event->button.y + 10); _editor->verbose_cursor()->show (); + + if (!_point->can_slide ()) { + _x_constrained = true; + } } void