summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-13 19:56:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-13 19:56:43 +0000
commit036e7339ff36ed08a4c8776272b4fbbd79591ceb (patch)
treed2ad139ab6d5d11ceee06b8b00bc2405c7c34bc2 /gtk2_ardour/selection.cc
parent40e9dae606c034ce078e929421f8ae122dda4efc (diff)
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
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index cf25826676..1009755fd4 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -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;