From 785318eec307942d4211619537106618a6679b79 Mon Sep 17 00:00:00 2001 From: "mmoss@google.com" Date: Thu, 18 Sep 2008 16:53:05 +0000 Subject: [PATCH] Submit Issue 2965 patch by vega.james@gmail.com (jamessan) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2362 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/slide_animation.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/common/slide_animation.cc b/chrome/common/slide_animation.cc index 67d40231068949..ffcb6567b9c9bb 100644 --- a/chrome/common/slide_animation.cc +++ b/chrome/common/slide_animation.cc @@ -113,7 +113,7 @@ void SlideAnimation::AnimateToState(double state) { value_current_ = value_start_ + (value_end_ - value_start_) * state; // Implement snapping. - if (tween_type_ == EASE_OUT_SNAP && abs(value_current_ - value_end_) <= 0.06) + if (tween_type_ == EASE_OUT_SNAP && fabs(value_current_ - value_end_) <= 0.06) value_current_ = value_end_; // Correct for any overshoot (while state may be capped at 1.0, let's not @@ -123,4 +123,3 @@ void SlideAnimation::AnimateToState(double state) { value_current_ = value_end_; } } -