X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractclipitem.cpp;h=6584428fb56d3526ae3f44886226740092981904;hb=06256534f3436078703ec354abfe8a76021b7824;hp=5b990206630a4f9138e4c94dc692232b0e7b5711;hpb=2132b23b05cd9f8f766c2b7a91d770563d7b9463;p=kdenlive diff --git a/src/abstractclipitem.cpp b/src/abstractclipitem.cpp index 5b990206..6584428f 100644 --- a/src/abstractclipitem.cpp +++ b/src/abstractclipitem.cpp @@ -149,7 +149,6 @@ void AbstractClipItem::resizeStart(int posx) moveBy(durationDiff.frames(m_fps), 0); if (m_info.startPos != GenTime(posx, m_fps)) { - kDebug() << "__ RESIZE START OFFSET: "; //kDebug()<<"////// WARNING, DIFF IN XPOS: "<matrix().map(l); painter->drawLine(l2); @@ -299,7 +305,7 @@ int AbstractClipItem::mouseOverKeyFrames(QPointF pos, double maxOffset) const QRectF br = sceneBoundingRect(); double maxw = br.width() / cropDuration().frames(m_fps); double maxh = br.height() / 100.0 * m_keyframeFactor; - if (m_keyframes.count() > 1) { + if (m_keyframes.count() > 0) { QMap::const_iterator i = m_keyframes.constBegin(); double x1; double y1; @@ -335,7 +341,7 @@ int AbstractClipItem::selectedKeyFramePos() const double AbstractClipItem::selectedKeyFrameValue() const { - return m_keyframes[m_editedKeyframe]; + return m_keyframes.value(m_editedKeyframe); } void AbstractClipItem::updateKeyFramePos(const GenTime pos, const double value) @@ -366,6 +372,7 @@ void AbstractClipItem::updateKeyFramePos(const GenTime pos, const double value) if (m_selectedKeyframe != newpos) m_keyframes.remove(m_selectedKeyframe); m_keyframes[newpos] = (int) newval; m_selectedKeyframe = newpos; + update(); }