This commit is contained in:
itsmattkc
2019-05-09 11:11:24 +10:00
parent fc94881865
commit 3fe0d1cda5
3 changed files with 16 additions and 9 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ void MoveClipAction::doUndo() {
// Move clip to the new track ONLY IF the old track currently contains this clip - a workaround to ensure this
// action doesn't accidentaly add a clip that it's not supposed to
if (new_track->ContainsClip(clip.get())) {
if (old_track != new_track && new_track->ContainsClip(clip.get())) {
old_track->AddClip(clip);
}
@@ -92,7 +92,7 @@ void MoveClipAction::doRedo() {
// Move clip to the new track ONLY IF the old track currently contains this clip - a workaround to ensure this
// action doesn't accidentaly add a clip that it's not supposed to
if (old_track->ContainsClip(clip.get())) {
if (old_track != new_track && old_track->ContainsClip(clip.get())) {
new_track->AddClip(clip);
}
@@ -1012,7 +1012,7 @@ void RippleAction::doRedo() {
length,
0,
c->track(),
true,
false,
true);
}
}