diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-05 20:33:31 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-04-06 11:28:04 +0200 |
commit | fd95dfdbe28d033596d65c517e12ee91e49c8a7c (patch) | |
tree | 58396b83e6f3a5cb5a7cab12c6618121c25e4910 /sd | |
parent | rhbz#1820868 deref of null xLayoutManager (diff) | |
download | core-fd95dfdbe28d033596d65c517e12ee91e49c8a7c.tar.gz core-fd95dfdbe28d033596d65c517e12ee91e49c8a7c.zip |
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/+/91714
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationPane.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index c63e4d0e8712..8a839475f3ec 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -2457,7 +2457,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; } |