From 13c851f3cfba937258cf2c6edc6df650e2a176de Mon Sep 17 00:00:00 2001 From: nick_m Date: Sat, 25 Jun 2016 02:54:37 +1000 Subject: [PATCH] Restore earlier midi region trim display. --- gtk2_ardour/midi_region_view.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 7f4a2563f4..4a6a0fbb18 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1417,10 +1417,11 @@ MidiRegionView::region_resized (const PropertyChange& what_changed) what_changed.contains (ARDOUR::Properties::position)) { _source_relative_time_converter.set_origin_b (_region->position() - _region->start()); } - if (what_changed.contains (ARDOUR::Properties::length)) { + /* catch an end trim so we can live update */ + if (!what_changed.contains (ARDOUR::Properties::start) && + what_changed.contains (ARDOUR::Properties::length)) { enable_display (true); } - } void @@ -3979,6 +3980,10 @@ MidiRegionView::trim_front_ending () /* Trim drag made start time -ve; fix this */ midi_region()->fix_negative_start (); } + /* until _start is modified on the fly during front trim, + we have to redisplay the model when a start trim has finished. + */ + enable_display (true); } void