Commit f8c8ff4e authored by Till Theato's avatar Till Theato
Browse files

Try to fix crash on moving group:

http://kdenlive.org/mantis/view.php?id=1706

svn path=/trunk/kdenlive/; revision=4634
parent 5549f7c5
......@@ -3224,7 +3224,6 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
m_document->renderer()->mltAddTransition(tr->transitionTag(), newTrack, m_document->tracksCount() - info.track, info.startPos, info.endPos, tr->toXML());
}
}
rebuildGroup((AbstractGroupItem *)group);
new MoveGroupCommand(this, clipsToMove, transitionsToMove, timeOffset, trackOffset, false, moveGroup);
m_commandStack->push(moveGroup);
......@@ -3236,6 +3235,8 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
if (m_selectionGroup) {
m_selectionGroupInfo.startPos = GenTime(m_selectionGroup->scenePos().x(), m_document->fps());
m_selectionGroupInfo.track = m_selectionGroup->track();
} else {
rebuildGroup((AbstractGroupItem *)group);
}
setDocumentModified();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment