diff --git a/src/plugins/qmldesigner/components/curveeditor/animationcurve.cpp b/src/plugins/qmldesigner/components/curveeditor/animationcurve.cpp index f329ac6bae4..2c716652fdf 100644 --- a/src/plugins/qmldesigner/components/curveeditor/animationcurve.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/animationcurve.cpp @@ -327,6 +327,22 @@ void AnimationCurve::analyze() if (frame.position().y() > m_maxY) m_maxY = frame.position().y(); + + if (frame.hasLeftHandle()) { + if (frame.leftHandle().y() < m_minY) + m_minY = frame.leftHandle().y(); + + if (frame.leftHandle().y() > m_maxY) + m_maxY = frame.leftHandle().y(); + } + + if (frame.hasRightHandle()) { + if (frame.rightHandle().y() < m_minY) + m_minY = frame.rightHandle().y(); + + if (frame.rightHandle().y() > m_maxY) + m_maxY = frame.rightHandle().y(); + } } } }