mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 16:37:44 +01:00
Revert "[Summary] Fixed bug. Not specified in TT. Ranges which coincided with region borders (achieved by the context menu commands like Move Range Start/End ... ) used to cut a small byte of region which border coincided."
This reverts commit 3b4d7ef1b4.
This commit is contained in:
parent
3b4d7ef1b4
commit
886bebe342
2 changed files with 3 additions and 33 deletions
|
|
@ -85,19 +85,6 @@ AudioPlaylist::AudioPlaylist (boost::shared_ptr<const AudioPlaylist> other, fram
|
|||
framecnt_t fade_in = 64;
|
||||
framecnt_t fade_out = 64;
|
||||
|
||||
/* coverage will return OverlapStart if the start/end coincides
|
||||
with the end/start point. we do not add such a region to the new playlist,
|
||||
so catch this special case.
|
||||
*/
|
||||
|
||||
if (region->first_frame() >= end) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (region->last_frame() <= start) {
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (region->coverage (start, end)) {
|
||||
case Evoral::OverlapNone:
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -210,19 +210,6 @@ Playlist::Playlist (boost::shared_ptr<const Playlist> other, framepos_t start, f
|
|||
|
||||
region = *i;
|
||||
|
||||
/* coverage will return OverlapStart if the start/end coincides
|
||||
with the end/start point. we do not add such a region to the new playlist,
|
||||
so catch this special case.
|
||||
*/
|
||||
|
||||
if (region->first_frame() >= end) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (region->last_frame() <= start) {
|
||||
continue;
|
||||
}
|
||||
|
||||
overlap = region->coverage (start, end);
|
||||
|
||||
switch (overlap) {
|
||||
|
|
@ -927,7 +914,7 @@ Playlist::flush_notifications (bool from_undo)
|
|||
|
||||
current = *i;
|
||||
|
||||
if (current->first_frame() >= start && current->last_frame() <= end) {
|
||||
if (current->first_frame() >= start && current->last_frame() < end) {
|
||||
|
||||
if (cutting) {
|
||||
remove_region_internal (current);
|
||||
|
|
@ -936,18 +923,14 @@ Playlist::flush_notifications (bool from_undo)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* coverage will return OverlapStart if the start/end coincides
|
||||
with the end/start point. we do not partition such a region,
|
||||
/* coverage will return OverlapStart if the start coincides
|
||||
with the end point. we do not partition such a region,
|
||||
so catch this special case.
|
||||
*/
|
||||
|
||||
if (current->first_frame() >= end) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (current->last_frame() <= start) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((overlap = current->coverage (start, end)) == Evoral::OverlapNone) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue