changeset 12 | 6c0ec0ccd2d4 |
parent 11 | 42505cd701c6 |
child 17 | a10844a9914d |
--- a/ganeswidgets/src/hgspring.cpp Fri Jul 23 10:05:37 2010 +0300 +++ b/ganeswidgets/src/hgspring.cpp Fri Aug 06 09:27:34 2010 +0300 @@ -71,6 +71,11 @@ // TODO: Remove this function and use only the animateToPosAfterPanning version? void HgSpring::animateToPos(const QPointF& pos) { + if (mPos == pos) { + // No need to animate, we are already in correct position. + return; + } + mStartPos = mPos; mEndPos = pos;