]> git.sesse.net Git - kdenlive/commitdiff
Fix possible timeline corruption caused by missing check for collision when aligning...
authorTill Theato <root@ttill.de>
Sun, 18 Mar 2012 22:49:02 +0000 (23:49 +0100)
committerTill Theato <root@ttill.de>
Sun, 18 Mar 2012 22:49:02 +0000 (23:49 +0100)
src/customtrackview.cpp

index ab0a31232dedbaa2a7823143dfc3a00789f48ffe..433d70c08b481b547e6ef990a152632722bf0284 100644 (file)
@@ -6086,6 +6086,12 @@ void CustomTrackView::alignAudio()
 #endif
                 }
 
+                if (itemCollision(clip, end)) {
+                    delete moveCommand;
+                    emit displayMessage(i18n("Unable to move clip due to collision."), ErrorMessage);
+                    return;
+                }
+
                 moveCommand->setText(i18n("Auto-align clip"));
                 new MoveClipCommand(this, start, end, true, moveCommand);
                 updateTrackDuration(clip->track(), moveCommand);