]> git.sesse.net Git - kdenlive/blobdiff - src/razorclipcommand.cpp
Fix keyframe move in geometry widgets
[kdenlive] / src / razorclipcommand.cpp
index 4b6a50c658988668c0801ab6c288e1e6183e79e6..023f39f8c7ab8d33253aa4d52c80bf012ff3e696 100644 (file)
 
 #include <KLocale>
 
-RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_cutTime(cutTime), m_doIt(doIt)
+RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_info(info),
+        m_cutTime(cutTime),
+        m_doIt(doIt)
 {
     setText(i18n("Razor clip"));
 }
@@ -32,15 +37,13 @@ RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, c
 void RazorClipCommand::undo()
 {
     // kDebug()<<"----  undoing action";
-    m_doIt = true;
     m_view->cutClip(m_info, m_cutTime, false);
 }
 // virtual
 void RazorClipCommand::redo()
 {
     // kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
-    if (m_doIt)
-        m_view->cutClip(m_info, m_cutTime, true);
+    if (m_doIt) m_view->cutClip(m_info, m_cutTime, true);
     m_doIt = true;
 }