13
0

fix more range selection issues

git-svn-id: svn://localhost/ardour2/branches/3.0@13662 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-13 21:10:44 +00:00
parent 036e7339ff
commit 174b2fd7b1

View File

@ -346,13 +346,13 @@ Selection::toggle (framepos_t start, framepos_t end)
/* XXX this implementation is incorrect */
time.push_back (AudioRange (start, end, next_time_id++));
time.push_back (AudioRange (start, end, ++next_time_id));
time.consolidate ();
time.sort (cmp);
TimeChanged ();
return next_time_id - 1;
return next_time_id;
}
void
@ -522,13 +522,13 @@ Selection::add (framepos_t start, framepos_t end)
/* XXX this implementation is incorrect */
time.push_back (AudioRange (start, end, next_time_id++));
time.push_back (AudioRange (start, end, ++next_time_id));
time.consolidate ();
time.sort (cmp);
TimeChanged ();
return next_time_id - 1;
return next_time_id;
}
void