summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx')
-rw-r--r--sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx b/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
index 1d98a217ff90..5f322e65141d 100644
--- a/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
+++ b/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
@@ -450,6 +450,7 @@ void PageObjectRun::ResetOffsets (const controller::Animator::AnimationMode eMod
{
model::SharedPageDescriptor pDescriptor(rModel.GetPageDescriptor(nIndex+mnStartIndex));
if (pDescriptor)
+ {
if (eMode == controller::Animator::AM_Animated)
maStartOffset[nIndex] = pDescriptor->GetVisualState().GetLocationOffset();
else
@@ -459,6 +460,7 @@ void PageObjectRun::ResetOffsets (const controller::Animator::AnimationMode eMod
rView.RequestRepaint(aOldBoundingBox);
rView.RequestRepaint(pDescriptor);
}
+ }
maEndOffset[nIndex] = Point(0,0);
}
if (eMode == controller::Animator::AM_Animated)