forked from qt-creator/qt-creator
Include handles when computing the scene extend
Change-Id: I6a6cd17d97c7d590b329315283acdb90ab9117f1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
f136415e8c
commit
7a39a3c9df
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user