sw/source/core/text/EnhancedPDFExportHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cd57d3c5743ca4ed4cf59eaabaee551c085d430c Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Wed Aug 30 20:10:33 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Aug 31 20:16:47 2023 +0200 tdf#156306 sw: PDF export: another implicit structure element BeginBlockStructureElements() calls BeginTag(vcl::PDFWriter::TOCI) when exporting fdo51792-1.odt sw/source/core/text/EnhancedPDFExportHelper.cxx:501: void SwTaggedPDFHelper::BeginTag(vcl::PDFWriter::StructElement, const rtl::OUString&): Assertion `rFrameTagSet.find(pKey) == rFrameTagSet.end()' failed. Change-Id: I71ab6a6522c580e8bb740862dc0867ee615d0273 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156308 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 40e6a8fbde13..0b4fe669b7d8 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -468,7 +468,7 @@ void SwTaggedPDFHelper::BeginTag( vcl::PDFWriter::StructElement eType, const OUS { void const* pKey(nullptr); - if (mpFrameInfo && eType != vcl::PDFWriter::LIBody) + if (mpFrameInfo && eType != vcl::PDFWriter::LIBody && eType != vcl::PDFWriter::TOCI) { const SwFrame& rFrame = mpFrameInfo->mrFrame;