writerfilter/source/dmapper/DomainMapper_Impl.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit bcca21c44d22315af579cad6a404fea43de31bc9 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jan 14 09:41:42 2021 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Jan 14 14:51:58 2021 +0100 cid#1470700 try to help coverity see 'Using invalid iterator' is false Change-Id: I04f3d2779db32cc5ca3d6303d146d017aa4f5ef4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109265 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 59f856801c05..f41f03a09a41 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -1742,6 +1742,7 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap, con OUString aPreviousNumberingName; if (isNumberingViaRule) { + assert(itNumberingRules != aProperties.end() && "by definition itNumberingRules is valid if isNumberingViaRule is true"); uno::Reference<container::XNamed> xCurrentNumberingRules(itNumberingRules->Value, uno::UNO_QUERY); if (xCurrentNumberingRules.is()) aCurrentNumberingName = xCurrentNumberingRules->getName(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
