mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
Locations::clear_ranges() leaves punch/loop/session ranges intact if they exist
This commit is contained in:
parent
f415e24514
commit
73f2baf5c6
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue