diff -r 42505cd701c6 -r 6c0ec0ccd2d4 ganeswidgets/src/hgspring.cpp --- 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;