Commit aa89fec1 authored by Till Theato's avatar Till Theato
Browse files

Fix keyframes in keyframeedit not added at the very end

svn path=/trunk/kdenlive/; revision=5551
parent 0291c6e2
......@@ -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);
......
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