summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-06-24 17:10:22 +0200
committerRadek Doulik <rodo@novell.com>2011-06-24 17:10:22 +0200
commita7ee99c8a20caefe4f1a6d641ba9c588d2115774 (patch)
tree209b9997c7e647bb915ea5ed4a5ba64f326d8e9e /sd
parent6f277160288477b7e1a36191b71fe4210beb0019 (diff)
quick fix to avoid crash on impress's start
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index f6373971bcd2..5ea9672df6ab 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -742,7 +742,7 @@ void CustomAnimationList::update()
// An entry has moved down out of view; scroll down one.
ScrollToAbsPos( nFirstVis + 1 );
}
- else
+ else if ( nFirstVis != -1 )
{
// The selection is still in view, or it hasn't moved.
ScrollToAbsPos( nFirstVis );