From 95ba43916f5e7e3421adf2629b3eae5fe63fe5de Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 21 Jun 2016 22:04:06 +1000 Subject: Improve performance of automation range moves. --- libs/ardour/diskstream.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc index 3ca463189c..6eac0c1cd9 100644 --- a/libs/ardour/diskstream.cc +++ b/libs/ardour/diskstream.cc @@ -568,7 +568,9 @@ Diskstream::playlist_ranges_moved (list< Evoral::RangeMove > const & continue; } boost::shared_ptr alist = ac->alist(); - + if (!alist->size()) { + continue; + } XMLNode & before = alist->get_state (); bool const things_moved = alist->move_ranges (movements); if (things_moved) { @@ -598,6 +600,9 @@ Diskstream::move_processor_automation (boost::weak_ptr p, list< Evora for (set::const_iterator i = a.begin (); i != a.end (); ++i) { boost::shared_ptr al = processor->automation_control(*i)->alist(); + if (!al->size()) { + continue; + } XMLNode & before = al->get_state (); bool const things_moved = al->move_ranges (movements); if (things_moved) { -- cgit v1.2.3