summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/Library_slideshow.mk4
-rw-r--r--slideshow/source/engine/effectrewinder.cxx7
2 files changed, 10 insertions, 1 deletions
diff --git a/slideshow/Library_slideshow.mk b/slideshow/Library_slideshow.mk
index ec3d65989bff..23b8b86ac311 100644
--- a/slideshow/Library_slideshow.mk
+++ b/slideshow/Library_slideshow.mk
@@ -35,6 +35,10 @@ $(eval $(call gb_Library_use_externals,slideshow,\
))
endif
+$(eval $(call gb_Library_use_custom_headers,slideshow,\
+ officecfg/registry \
+))
+
$(eval $(call gb_Library_use_sdk_api,slideshow))
$(eval $(call gb_Library_use_libraries,slideshow,\
diff --git a/slideshow/source/engine/effectrewinder.cxx b/slideshow/source/engine/effectrewinder.cxx
index 5db91ff9a621..d8889024108b 100644
--- a/slideshow/source/engine/effectrewinder.cxx
+++ b/slideshow/source/engine/effectrewinder.cxx
@@ -30,6 +30,9 @@
#include <com/sun/star/animations/EventTrigger.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/animations/XAnimate.hpp>
+
+#include <officecfg/Office/Canvas.hxx>
+
using ::com::sun::star::uno::Reference;
using namespace ::com::sun::star;
@@ -346,7 +349,9 @@ bool EffectRewinder::notifyAnimationStart (const AnimationNodeSharedPtr& rpNode)
{
Reference<animations::XAnimationNode> xNode (rpNode->getXAnimationNode());
- if(xNode.is() && hasBlockedAnimation(xNode) )
+ if( xNode.is() &&
+ !officecfg::Office::Canvas::ForceSafeServiceImpl::get() &&
+ hasBlockedAnimation(xNode) )
skipSingleMainSequenceEffects();
// This notification is only relevant for us when the rpNode belongs to