summaryrefslogtreecommitdiff
path: root/libs/ardour/location.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-13 01:47:44 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:13 -0400
commit8367b7cab344e75908744a95fda860c7fadff420 (patch)
tree1e7e230abb70aad6b8cee33c8501162bd4f52d16 /libs/ardour/location.cc
parent706eb6dacde7d66422f0333ef1baa4078ca10d59 (diff)
remove artificial, accidental and utterly unintended limit of the numbering of scene changes
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r--libs/ardour/location.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc
index 1c08f8e2ae..73978ae15c 100644
--- a/libs/ardour/location.cc
+++ b/libs/ardour/location.cc
@@ -824,8 +824,12 @@ Locations::next_available_name(string& result,string base)
const string& temp ((*i)->name());
if (!temp.find (base,0)) {
-
- if ((suffix = atoi (temp.substr(l,3))) != 0) {
+ /* grab what comes after the "base" as if it was
+ a number, and assuming that works OK,
+ store it in "taken" so that we know it
+ has been used.
+ */
+ if ((suffix = atoi (temp.substr(l))) != 0) {
taken.insert (make_pair (suffix,true));
}
}