X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcommands%2Fresizeclipcommand.cpp;h=aef17634d6605613951aaf831c898fa51f440980;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=9cde2c4bf7a16e5c2b35f253d1280c11559e0996;hpb=79a58d4bd2faf4d6ee6576acc70219e95efb2865;p=kdenlive diff --git a/src/commands/resizeclipcommand.cpp b/src/commands/resizeclipcommand.cpp index 9cde2c4b..aef17634 100644 --- a/src/commands/resizeclipcommand.cpp +++ b/src/commands/resizeclipcommand.cpp @@ -23,13 +23,13 @@ #include -ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent) : - QUndoCommand(parent), - m_view(view), - m_startPos(start), - m_endPos(end), - m_doIt(doIt), - m_dontWorry(dontWorry) +ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent) : + QUndoCommand(parent), + m_view(view), + m_startPos(start), + m_endPos(end), + m_doIt(doIt), + m_dontWorry(dontWorry) { setText(i18n("Resize clip")); } @@ -42,7 +42,9 @@ void ResizeClipCommand::undo() // virtual void ResizeClipCommand::redo() { - if (m_doIt) m_view->resizeClip(m_startPos, m_endPos, m_dontWorry); + if (m_doIt) { + m_view->resizeClip(m_startPos, m_endPos, m_dontWorry); + } m_doIt = true; }