diff options
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 86dab143e9..d79813ab35 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2119,15 +2119,7 @@ Editor::clear_ranges () _session->begin_reversible_command (_("clear ranges")); XMLNode &before = _session->locations()->get_state(); - Location * looploc = _session->locations()->auto_loop_location(); - Location * punchloc = _session->locations()->auto_punch_location(); - Location * sessionloc = _session->locations()->session_range_location(); - _session->locations()->clear_ranges (); - // re-add these - if (looploc) _session->locations()->add (looploc); - if (punchloc) _session->locations()->add (punchloc); - if (sessionloc) _session->locations()->add (sessionloc); XMLNode &after = _session->locations()->get_state(); _session->add_command(new MementoCommand<Locations>(*(_session->locations()), &before, &after)); |