make sure we never use ID of zero for range selections, fixing a very minor glitch in deleting a specific range selection from several

git-svn-id: svn://localhost/ardour2/branches/3.0@13661 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2012-12-13 19:56:43 +00:00
parent 40e9dae606
commit 036e7339ff

View File

@@ -859,7 +859,7 @@ Selection::set (framepos_t start, framepos_t end)
}
if (time.empty()) {
time.push_back (AudioRange (start, end, next_time_id++));
time.push_back (AudioRange (start, end, ++next_time_id));
} else {
/* reuse the first entry, and remove all the rest */
@@ -895,7 +895,7 @@ Selection::set_preserving_all_ranges (framepos_t start, framepos_t end)
}
if (time.empty ()) {
time.push_back (AudioRange (start, end, next_time_id++));
time.push_back (AudioRange (start, end, ++next_time_id));
} else {
time.sort (AudioRangeComparator ());
time.front().start = start;