From: Till Theato Date: Sun, 18 Jul 2010 14:28:57 +0000 (+0000) Subject: Fix group not being updated after undoing resize X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=97e1fc1a40a1f7a76434b36760ca5a277fd79002;p=kdenlive Fix group not being updated after undoing resize svn path=/trunk/kdenlive/; revision=4598 --- diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index f75efdb5..e1bd3d9b 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -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;