diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 97e0c270f5..09d4236d9a 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -5516,6 +5516,12 @@ Editor::adjust_region_gain (bool up) } bool in_command = false; + for (RegionSelection::iterator r = rs.begin(); r != rs.end(); ++r) { + AudioRegionView* const arv = dynamic_cast(*r); + if (arv) { + arv->region()->playlist()->freeze (); + } + } for (RegionSelection::iterator r = rs.begin(); r != rs.end(); ++r) { AudioRegionView* const arv = dynamic_cast(*r); @@ -5545,6 +5551,13 @@ Editor::adjust_region_gain (bool up) if (in_command) { commit_reversible_command (); } + + for (RegionSelection::iterator r = rs.begin(); r != rs.end(); ++r) { + AudioRegionView* const arv = dynamic_cast(*r); + if (arv) { + arv->region()->playlist()->thaw (); + } + } } void