]> git.sesse.net Git - kdenlive/commitdiff
Fix group not being updated after undoing resize
authorTill Theato <root@ttill.de>
Sun, 18 Jul 2010 14:28:57 +0000 (14:28 +0000)
committerTill Theato <root@ttill.de>
Sun, 18 Jul 2010 14:28:57 +0000 (14:28 +0000)
svn path=/trunk/kdenlive/; revision=4598

src/customtrackview.cpp

index f75efdb5dc7025b367c60dcd231a205fac1b3604..e1bd3d9ba537373c78922cb72b8e79e2647ba695 100644 (file)
@@ -4058,6 +4058,11 @@ void CustomTrackView::prepareResizeClipStart(AbstractClipItem* item, ItemInfo ol
         }
         KdenliveSettings::setSnaptopoints(snap);
     }
+
+    // do this here, too, because otherwise undo won't update the group
+    if (item->parentItem() && item->parentItem() != m_selectionGroup)
+        new RebuildGroupCommand(this, item->info().track, item->info().startPos, command);
+
     ItemInfo info = item->info();
     if (item->type() == AVWIDGET) {
         ItemInfo resizeinfo = oldInfo;
@@ -4170,6 +4175,11 @@ void CustomTrackView::prepareResizeClipEnd(AbstractClipItem* item, ItemInfo oldI
         }
         KdenliveSettings::setSnaptopoints(snap);
     }
+
+    // do this here, too, because otherwise undo won't update the group
+    if (item->parentItem() && item->parentItem() != m_selectionGroup)
+        new RebuildGroupCommand(this, item->info().track, item->info().startPos, command);
+
     ItemInfo info = item->info();
     if (item->type() == AVWIDGET) {
         ItemInfo resizeinfo = info;