sw/source/core/text/EnhancedPDFExportHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 16aa870598d00eb3e6ac15435fef080d3b87cbc1 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Wed Aug 2 15:01:20 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Aug 2 18:55:18 2023 +0200 tdf#156306 sw: PDF export: duplicate structure element from ... ... lazy open LIBody - with mpFrameInfo, not mpNumInfo - causes this assert and later an infinite loop as the SE is its own parent: sw/source/core/text/EnhancedPDFExportHelper.cxx:468: void SwTaggedPDFHelper::BeginTag(vcl::PDFWriter::StructElement, const rtl::OUString&): Assertion `rFrameTagSet.find(pKey) == rFrameTagSet.end()' failed. (regression from commit d467f1aa3d028f399826c97e2eecedcd79efcf65) Change-Id: I90f057c45a22e5ef44ae5ae9d1cb1d6b8870379f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155253 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 69fdfcacb096..9124522379c8 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -450,7 +450,7 @@ void SwTaggedPDFHelper::BeginTag( vcl::PDFWriter::StructElement eType, const OUS { void const* pKey(nullptr); - if ( mpFrameInfo ) + if (mpFrameInfo && eType != vcl::PDFWriter::LIBody) { const SwFrame& rFrame = mpFrameInfo->mrFrame;