summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-09-06 00:20:00 +0000
committerCarl Hetherington <carl@carlh.net>2011-09-06 00:20:00 +0000
commit512411c9e51c4601a3506939dcc84ab6a2bb4c32 (patch)
treead2656c7914e16cc73be4119ab9134eaf5d6748a /gtk2_ardour
parent24a38b8b08914636c5fd81646460cc083df5ecb9 (diff)
Patch from royvegard to stop session range location being removed on clear-ranges (#4284).
git-svn-id: svn://localhost/ardour2/branches/3.0@10055 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_ops.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 6d83518f72..b19dd6af77 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -1839,11 +1839,13 @@ Editor::clear_ranges ()
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));