sd/source/core/CustomAnimationCloner.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 947e9ffba8e5a8b18b46efcf06de998cea6edaa6 Author: Muhammet Kara <[email protected]> AuthorDate: Sat Nov 9 00:14:11 2019 +0300 Commit: Muhammet Kara <[email protected]> CommitDate: Sat Nov 9 17:21:09 2019 +0100 Fix tdf#124708: CRASH: Selecting all and deleting Change-Id: I0de912dad97f266a56ab52a351b0676f17675ed5 Reviewed-on: https://gerrit.libreoffice.org/82332 Tested-by: Jenkins Reviewed-by: Muhammet Kara <[email protected]> (cherry picked from commit 8023a613e978be42758c88d23f1973f7b9661676) Reviewed-on: https://gerrit.libreoffice.org/82354 diff --git a/sd/source/core/CustomAnimationCloner.cxx b/sd/source/core/CustomAnimationCloner.cxx index 281ad7f7affe..154e8ab6ecac 100644 --- a/sd/source/core/CustomAnimationCloner.cxx +++ b/sd/source/core/CustomAnimationCloner.cxx @@ -294,9 +294,13 @@ namespace sd Reference< XAnimationNode > CustomAnimationClonerImpl::getClonedNode( const Reference< XAnimationNode >& xSource ) const { - sal_Int32 nNode, nNodeCount = maSourceNodeVector.size(); + std::size_t nNodeCount = maSourceNodeVector.size(); + std::size_t nCloneNodeCount = maCloneNodeVector.size(); - for( nNode = 0; nNode < nNodeCount; nNode++ ) + if (nNodeCount != nCloneNodeCount) + SAL_WARN("sd.core", "Sizes of maSourceNodeVector and maCloneNodeVector mismatch!"); + + for( std::size_t nNode = 0; nNode < nNodeCount && nNode < nCloneNodeCount; ++nNode ) { if( maSourceNodeVector[nNode] == xSource ) return maCloneNodeVector[nNode]; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
