mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 00:47:43 +01:00
(2) debugging region splitting with nowhiskey_
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3454 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d3cb241309
commit
671e116ea7
1 changed files with 5 additions and 1 deletions
|
|
@ -2581,6 +2581,8 @@ Session::region_name (string& result, string base, bool newlevel) const
|
|||
cerr << "Session::region_name() searching over " << audio_regions.size() << " existing regions\n";
|
||||
|
||||
for (int n = 1; n < 5000; ++n) {
|
||||
|
||||
int nxx = 0;
|
||||
|
||||
result = subbase;
|
||||
snprintf (buf, sizeof (buf), ".%d", n);
|
||||
|
|
@ -2588,12 +2590,14 @@ Session::region_name (string& result, string base, bool newlevel) const
|
|||
|
||||
name_taken = false;
|
||||
|
||||
for (AudioRegionList::const_iterator i = audio_regions.begin(); i != audio_regions.end(); ++i) {
|
||||
for (AudioRegionList::const_iterator i = audio_regions.begin(); i != audio_regions.end(); ++i, ++nxx) {
|
||||
if (i->second->name() == result) {
|
||||
name_taken = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cerr << "\tname search ended after checking " << nxx << " regions\n";
|
||||
|
||||
if (!name_taken) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue