diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-09 10:59:09 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-13 16:18:24 -0500 |
commit | 78d76c197eaba74e1f0f9453140ac52af920b3ab (patch) | |
tree | a37b5abc1323a9a20b4e8fadb17feb99b9fe0c57 /gtk2_ardour/editor_drag.cc | |
parent | bc2271b43ee8f301f89ef612e42d81c7b0c992f2 (diff) |
allow normal right trimming even if the start of a range is at zero
Conflicts:
gtk2_ardour/editor_drag.cc
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 519c7d9f32..50f015eeeb 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3431,8 +3431,10 @@ MarkerDrag::motion (GdkEvent* event, bool) copy_location = x->location; - /* call this to find out if its the start or end */ - + if ((type != TrimRight) && (delta < 0)) { + delta = max (-((framecnt_t) earliest_start), delta); + } + if ((real_location = _editor->find_location_from_marker (x->markers.front(), is_start)) == 0) { continue; } |