]> git.sesse.net Git - kdenlive/commitdiff
- Fix crash when redoing group move
authorTill Theato <root@ttill.de>
Sun, 22 Aug 2010 11:02:00 +0000 (11:02 +0000)
committerTill Theato <root@ttill.de>
Sun, 22 Aug 2010 11:02:00 +0000 (11:02 +0000)
- Fix group resize from start after undoing a group move

svn path=/trunk/kdenlive/; revision=4748

src/customtrackview.cpp

index 24cc31663edf90faa6a3775eeb56d2452b74d425..fec9a753daf2b1441bf057e63183c974e2569c3b 100644 (file)
@@ -4135,9 +4135,14 @@ void CustomTrackView::moveGroup(QList <ItemInfo> startClip, QList <ItemInfo> sta
                 m_document->renderer()->mltAddTransition(tr->transitionTag(), newTrack, m_document->tracksCount() - info.track, info.startPos, info.endPos, tr->toXML());
             }
         }
-        if (!reverseMove)
-            rebuildGroup(m_selectionGroup);
+
         resetSelectionGroup(false);
+
+        for (int i = 0; i < children.count(); i++) {
+            if (children.at(i)->parentItem())
+                rebuildGroup((AbstractGroupItem*)children.at(i)->parentItem());
+        }
+
         KdenliveSettings::setSnaptopoints(snap);
         m_document->renderer()->doRefresh();
     } else kDebug() << "///////// WARNING; NO GROUP TO MOVE";