summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-04-05 20:33:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-04-05 22:29:30 +0200
commit7c5d207c6adaafa8c4f6fe90e3389c7fdaadc800 (patch)
treedcc641ff5509f4377ab140583232ea8947f19686
parentfc028b21a7576bd24d930f32e7d00e32e0e58b99 (diff)
attempt to deref end() iterator
seen when dragging last animation in animation pane up one position Change-Id: I2c5163a58bb67fc7982c41546559207977e8b7c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91729 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index ea64b247f8fb..5b4ff943ec2e 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -2468,7 +2468,7 @@ void CustomAnimationPane::onDragNDropComplete(std::vector< CustomAnimationEffect
mpMainSequence->moveToBeforeEffect( pEffect, pEffectInsertBefore );
// Done moving effect and its hidden sub-effects when *next* effect is visible.
- if ( mpCustomAnimationList->isVisible( *aIter ) )
+ if (aIter != aEnd && mpCustomAnimationList->isVisible(*aIter))
break;
}