]> git.sesse.net Git - kdenlive/commitdiff
Fix clips losing effects after undoing group move
authorTill Theato <root@ttill.de>
Sun, 29 Aug 2010 09:56:59 +0000 (09:56 +0000)
committerTill Theato <root@ttill.de>
Sun, 29 Aug 2010 09:56:59 +0000 (09:56 +0000)
svn path=/trunk/kdenlive/; revision=4779

src/customtrackview.cpp

index 4fe9be9dfc5540554e4b610b166b721d2bbda52d..db8588d948e778a44343ee0cc0a0c3290440cdd0 100644 (file)
@@ -4199,6 +4199,9 @@ void CustomTrackView::moveGroup(QList <ItemInfo> startClip, QList <ItemInfo> sta
                 else
                     prod = clip->baseClip()->producer(info.track);
                 m_document->renderer()->mltInsertClip(info, clip->xml(), prod);
+                for (int i = 0; i < clip->effectsCount(); i++) {
+                    m_document->renderer()->mltAddEffect(info.track, info.startPos, getEffectArgs(clip->effectAt(i)), false);
+                }
             } else if (item->type() == TRANSITIONWIDGET) {
                 Transition *tr = static_cast <Transition*>(item);
                 int newTrack;