From 4be38046a5c2576b5b97ac47f7c0ea17444524ea Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 24 Jun 2011 17:10:22 +0200 Subject: quick fix to avoid crash on impress's start --- sd/source/ui/animations/CustomAnimationList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx index 196fc5388..cfb8463e1 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 ); -- cgit v1.2.3