13
0

Locations::clear_ranges() leaves punch/loop/session ranges intact if they exist

This commit is contained in:
Paul Davis 2014-09-17 09:38:42 -04:00
parent f415e24514
commit 73f2baf5c6

View File

@ -766,6 +766,17 @@ Locations::clear_ranges ()
tmp = i;
++tmp;
/* We do not remove these ranges as part of this
* operation
*/
if ((*i)->is_auto_punch() ||
(*i)->is_auto_loop() ||
(*i)->is_session_range()) {
i = tmp;
continue;
}
if (!(*i)->is_mark()) {
delete *i;
locations.erase (i);