diff --git a/src/commands/timelinecommands.cpp b/src/commands/timelinecommands.cpp index 63efe3fbd4..2ac3ad5a71 100644 --- a/src/commands/timelinecommands.cpp +++ b/src/commands/timelinecommands.cpp @@ -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;