Skip to content

Commit

Permalink
Do not delete marker for next clip when ripple trim out
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Oct 16, 2023
1 parent 4004e91 commit 360e43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/timelinecommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,12 @@ void TrimClipOutCommand::redo()
for (int i = 0; i < newMarkers.size(); i++) {
Markers::Marker &marker = newMarkers[i];
if (marker.start >= m_markerRemoveStart &&
marker.start <= m_markerRemoveEnd) {
marker.start < m_markerRemoveEnd) {
// This marker is in the removed segment. Remove it
newMarkers.removeAt(i);
i--;
markersModified = true;
} else if (marker.start > m_markerRemoveEnd) {
} else if (marker.start >= m_markerRemoveEnd) {
// This marker is after the removed segment. Shift it left
marker.start -= m_markerRemoveEnd - m_markerRemoveStart;
marker.end -= m_markerRemoveEnd - m_markerRemoveStart;
Expand Down

0 comments on commit 360e43a

Please sign in to comment.