fixed the calculation of the height

svn path=/trunk/KDE/kdelibs/; revision=1176062
This commit is contained in:
Giulio Camuffo 2010-09-16 14:13:09 +00:00
parent fd6d284ab7
commit 8c3ab81d2f

View File

@ -86,7 +86,7 @@ void GeometryAnimation::updateEffectiveTime(int currentTime)
m_startGeometry.top()*(1-delta) + m_targetGeometry.top()*(delta)));
if (m_startGeometry.size() != m_targetGeometry.size()) {
newGeo.setSize(QSizeF(m_startGeometry.width()*(1-delta) + m_targetGeometry.width()*(delta),
m_startGeometry.width()*(1-delta) + m_targetGeometry.width()*(delta)));
m_startGeometry.height()*(1-delta) + m_targetGeometry.height()*(delta)));
} else {
newGeo.setSize(m_targetGeometry.size());
}