Commit 42656bc7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Commands: Fix clip splitting.

parent 57dc6d22
......@@ -31,6 +31,8 @@
#ifdef WITH_GUI
# include "UndoStack.h"
#include <QtDebug>
void Commands::trigger( QUndoCommand* command )
{
UndoStack::getInstance()->push( command );
......@@ -176,8 +178,10 @@ Commands::MainWorkflow::SplitClip::~SplitClip()
void Commands::MainWorkflow::SplitClip::redo()
{
//If we don't remove 1, the clip will end exactly at the starting frame (ie. they will
//be rendering at the same time)
m_toSplit->setEnd( m_newClipBegin - 1 );
m_trackWorkflow->addClip( m_newClip, m_newClipPos );
m_toSplit->setEnd( m_newClipBegin );
}
void Commands::MainWorkflow::SplitClip::undo()
......
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