summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>2024-04-11 16:37:30 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2024-04-11 18:59:46 +0200
commit77eb3f1a76892b6070e77324e260204408383ef4 (patch)
tree09eb0794ac0cd207ab889819b96077d919b72aec /slideshow
parent11ed593acc339d848806cd263e1de9503965a53a (diff)
IASS: Correct Buffering of last Slide
There is a mechanism to pre-fetch the next slide, but at the last slide that just gets not reset/refreshed. Thus the last slide *is* the buffered slide. When making changes and refreshing the SlideShow display for the last slide this pe-fetched one is just used, so the slide content gets not re-created and thus not updated. I added needed code to do that now when reacing the last slide to make that work. Change-Id: Ie57e6917e0996d5fce46021aeb933064c47dd90f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166011 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 5e0dbbb8074e..121416327191 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -1041,6 +1041,14 @@ public:
seq[0] >>= mpSlideShowImpl->mxPrefetchSlide;
seq[1] >>= mpSlideShowImpl->mxPrefetchAnimationNode;
}
+ else // rProperty.Value might be tested to 'bool' and 'false'
+ {
+ // IASS: There is no 'next' slide (last one is displayed),
+ // so end/flush Prefetch since that might still hold the
+ // last slide what would prevent updating/re-creating it
+ mpSlideShowImpl->mxPrefetchSlide.clear();
+ mpSlideShowImpl->mpPrefetchSlide.reset();
+ }
}
else if ( rProperty.Name == "SkipAllMainSequenceEffects" )
{