fixed ripple deleting empty space

This commit is contained in:
itsmattkc
2019-04-06 16:36:40 +11:00
parent 8ed09cdccf
commit 2674d284e2
2 changed files with 14 additions and 7 deletions
+7 -3
View File
@@ -801,11 +801,11 @@ void Sequence::RippleDeleteEmptySpace(ComboAction* ca, Track* track, long point)
return;
}
if (c->timeline_out() < point) {
if (c->timeline_out() <= point) {
ripple_start = qMin(c->timeline_out(), ripple_start);
} else if (c->timeline_in() > point) {
} else if (c->timeline_in() >= point) {
ripple_end = qMin(c->timeline_in(), ripple_end);
@@ -815,7 +815,11 @@ void Sequence::RippleDeleteEmptySpace(ComboAction* ca, Track* track, long point)
// We now know the maximum ripple we could do to clear this empty space, but we need to ensure it won't cause
// overlaps of clips in other tracks
RippleDeleteArea(ca, point, ripple_end - ripple_start);
if (ripple_start == ripple_end) {
return;
}
RippleDeleteArea(ca, point, ripple_start - ripple_end);
}
void Sequence::RippleDeleteArea(ComboAction* ca, long ripple_point, long ripple_length) {