diff options
Diffstat (limited to 'sd/source/ui/presenter/PresenterPreviewCache.cxx')
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index 12f54ff91a2d..10fb3036de3e 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -2,7 +2,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 @@ -372,7 +372,7 @@ void PresenterPreviewCache::PresenterCacheContext::NotifyPreviewCreation ( const ::boost::shared_ptr<BitmapEx>& rPreview) { (void)rPreview; - + if ( ! mxSlides.is()) return; const sal_Int32 nCount(mxSlides->getCount()); @@ -427,10 +427,10 @@ const SdrPage* PresenterPreviewCache::PresenterCacheContext::GetPage (CacheKey a PresenterPreviewCache::PresenterCacheContext::GetEntryList (bool bVisible) { ::boost::shared_ptr<std::vector<CacheKey> > pKeys (new std::vector<CacheKey>()); - + if ( ! mxSlides.is()) return pKeys; - + const sal_Int32 nFirstIndex (bVisible ? mnFirstVisibleSlideIndex : 0); const sal_Int32 nLastIndex (bVisible ? mnLastVisibleSlideIndex : mxSlides->getCount()-1); @@ -454,11 +454,11 @@ sal_Int32 PresenterPreviewCache::PresenterCacheContext::GetPriority (CacheKey aK return 0; const sal_Int32 nCount (mxSlides->getCount()); - + for (sal_Int32 nIndex=mnFirstVisibleSlideIndex; nIndex<=mnLastVisibleSlideIndex; ++nIndex) if (aKey == GetPage(nIndex)) return -nCount-1+nIndex; - + for (sal_Int32 nIndex=0; nIndex<=nCount; ++nIndex) if (aKey == GetPage(nIndex)) return nIndex; |