summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-05 21:08:09 +0100
committerPetr Mladek <pmladek@suse.cz>2012-11-05 19:54:27 +0100
commitd89bcbdc23794eb600f7c5719010590c1cc33d21 (patch)
tree186521f938dc77352514cee6ee06e16e7bbe0851
parent0f6f5d2082462d21b12657cadd0f33011d179575 (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>
-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 16756a55b13f..2ed611589722 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -2819,6 +2819,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() );