]> git.sesse.net Git - kdenlive/commitdiff
Fix corruption when adding a transition to an existing group
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 27 Sep 2009 12:22:21 +0000 (12:22 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 27 Sep 2009 12:22:21 +0000 (12:22 +0000)
svn path=/trunk/kdenlive/; revision=3950

src/customtrackview.cpp

index 3b3fadfd6aa616e36491c80736c32732a75aa311..f20332332493c07d56a8bbb8ce3821993f5946cd 100644 (file)
@@ -1055,6 +1055,9 @@ void CustomTrackView::groupSelectedItems(bool force, bool createNewGroup)
         if (selection.at(i)->parentItem() == 0 && (selection.at(i)->type() == AVWIDGET || selection.at(i)->type() == TRANSITIONWIDGET || selection.at(i)->type() == GROUPWIDGET)) {
             rectUnion = rectUnion.united(selection.at(i)->sceneBoundingRect());
         }
+        else if (selection.at(i)->parentItem()) {
+            rectUnion = rectUnion.united(selection.at(i)->parentItem()->sceneBoundingRect());
+        }
     }
 
     if (force || selection.count() > 1) {