vcl/source/gdi/pdfwriter_impl.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 70f84abd6379c47db96d81d4b028041daa8c5d24 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Jul 26 10:17:05 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Jul 26 18:15:21 2023 +0200 cid#1538888 silence Improper use of negative value and cid#1538887 Improper use of negative value Change-Id: I0d62fb6b3650351dbe6c3cbbc0809b145afc2f4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154934 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 408bc5a5f4d8..e63ae76b8a8d 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -10847,6 +10847,8 @@ void PDFWriterImpl::beginStructureElement(sal_Int32 const id) if( ! m_aContext.Tagged ) return; + assert(id != -1 && "cid#1538888 doesn't consider above m_aContext.Tagged"); + // close eventual current MC sequence endStructureElementMCSeq(EndMode::OnlyStruct);