From: Till Theato Date: Sat, 23 Apr 2011 21:30:15 +0000 (+0000) Subject: Fix keyframes in keyframeedit not added at the very end X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=aa89fec15927afabacb1556b54ba9dcb6abf92e8;hp=0291c6e2483a9a29feda1dbfa4f7ea6e670fba91;p=kdenlive Fix keyframes in keyframeedit not added at the very end svn path=/trunk/kdenlive/; revision=5551 --- diff --git a/src/keyframeedit.cpp b/src/keyframeedit.cpp index fe26d5cd..317cd90c 100644 --- a/src/keyframeedit.cpp +++ b/src/keyframeedit.cpp @@ -192,15 +192,15 @@ void KeyframeEdit::slotAddKeyframe() newrow++; } else if (row == 0) { if (pos1 == m_min) { - result = m_max - 1; + result = m_max; newrow++; } else { result = m_min; } } else { - if (pos1 < m_max - 1) { + if (pos1 < m_max) { // last keyframe selected and it is not at end of clip -> add keyframe at the end - result = m_max - 1; + result = m_max; newrow++; } else { int pos2 = getPos(row - 1);