From aa89fec15927afabacb1556b54ba9dcb6abf92e8 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Sat, 23 Apr 2011 21:30:15 +0000 Subject: [PATCH] Fix keyframes in keyframeedit not added at the very end svn path=/trunk/kdenlive/; revision=5551 --- src/keyframeedit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2