summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterAnimator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterAnimator.cxx')
-rw-r--r--sdext/source/presenter/PresenterAnimator.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sdext/source/presenter/PresenterAnimator.cxx b/sdext/source/presenter/PresenterAnimator.cxx
index 572b2b4ff2ec..5efa3e129210 100644
--- a/sdext/source/presenter/PresenterAnimator.cxx
+++ b/sdext/source/presenter/PresenterAnimator.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,11 +79,11 @@ void PresenterAnimator::Process (void)
::osl::MutexGuard aGuard (m_aMutex);
mnNextTime = 0;
-
+
const sal_uInt64 nCurrentTime (GetCurrentTime());
ActivateAnimations(nCurrentTime);
-
+
while ( ! maActiveAnimations.empty())
{
sal_uInt64 nRequestedTime (maActiveAnimations.begin()->first);
@@ -91,9 +91,9 @@ void PresenterAnimator::Process (void)
if (nRequestedTime > nCurrentTime)
break;
-
+
maActiveAnimations.erase(maActiveAnimations.begin());
-
+
const double nTotalDuration (double(pAnimation->GetEndTime() - pAnimation->GetStartTime()));
double nProgress (nTotalDuration > 0 ? (nCurrentTime - pAnimation->GetStartTime()) / nTotalDuration : 1);
if (nProgress <= 0)
@@ -104,7 +104,7 @@ void PresenterAnimator::Process (void)
OSL_TRACE("running animation step at %f (requested was %f) %f\n",
nCurrentTime/1e6, nRequestedTime/1e6, nProgress);
pAnimation->Run(nProgress, nCurrentTime);
-
+
if (nCurrentTime < pAnimation->GetEndTime())
maActiveAnimations.insert(
AnimationList::value_type(