summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-05 21:08:09 +0100
committerMichael Stahl <mstahl@redhat.com>2012-10-26 16:01:48 +0000
commitdc7fe4eec579dbb5bf816dfa3fd53f8fec88da7c (patch)
tree1049ba2fddde1f498ffefcdb3cd3139e464a275d
parentdc9b4a29f1928fabcd4094942d32bc5985091838 (diff)
Related: fdo#51247 bandaid to not crash
Change-Id: I1f98a6a1e5ede6fcd9a3570788969edcb251384b (cherry picked from commit 63f00d37a20169743d9709977b382c379560ef9e) Reviewed-on: https://gerrit.libreoffice.org/918 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit aa06651526d47d9e102fbffc6e3f17da2a7ec160) Reviewed-on: https://gerrit.libreoffice.org/920
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index 47b47d126c11..8f39b267ca7c 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -2838,6 +2838,11 @@ void EffectSequenceHelper::setAnimateForm( CustomAnimationTextGroupPtr pTextGrou
EffectSequence aEffects( pTextGroup->maEffects );
pTextGroup->reset();
+ SAL_WARN_IF(aEffects.empty(), "sd", "EffectSequenceHelper::setAnimateForm effects empty" );
+
+ if (aEffects.empty())
+ return;
+
EffectSequence::iterator aIter( aEffects.begin() );
const EffectSequence::iterator aEnd( aEffects.end() );