diff options
author | Carl Hetherington <carl@carlh.net> | 2012-05-27 21:02:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-05-27 21:02:36 +0000 |
commit | 0b210042525b216acbbef2d10be99ffe5600c7c1 (patch) | |
tree | 3e0595a0cecc4d5d2f824b0350fd1fa58b8a7ebd /gtk2_ardour/editor_drag.cc | |
parent | f722858e43e3f26736254a27f5517019ae372305 (diff) |
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
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 |