From d467f1aa3d028f399826c97e2eecedcd79efcf65 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 12 Jul 2023 18:34:24 +0200 Subject: tdf#154982 drawinglayer,svx,sw,vcl: PDF export: hell flys and shapes... ... should be below their anchor paragraph in the structure tree. Refactor SwEnhancedPDFExportHelper (etc.) to use the new EnsureStructureElement()/InitStructureElement() functions instead of SetCurrentStructureElement() for the frames, and allow it for flys that don't have their anchor paragraphs created yet because the hell layer is exported before the document body. Change-Id: I1be3b54002e8196772e6f9d81dd0fd0c85b6e34b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154399 Tested-by: Jenkins Reviewed-by: Michael Stahl --- drawinglayer/source/primitive2d/structuretagprimitive2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drawinglayer/source/primitive2d') diff --git a/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx b/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx index 62da91ecc00f..47af55ab9b57 100644 --- a/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx @@ -31,13 +31,13 @@ namespace drawinglayer::primitive2d bool bBackground, bool bIsImage, Primitive2DContainer&& aChildren, - sal_Int32 const nAnchorStructureElementId, + void const*const pAnchorStructureElementKey, ::std::vector const*const pAnnotIds) : GroupPrimitive2D(std::move(aChildren)), maStructureElement(rStructureElement), mbBackground(bBackground), mbIsImage(bIsImage) - , m_nAnchorStructureElementId(nAnchorStructureElementId) + , m_pAnchorStructureElementKey(pAnchorStructureElementKey) { if (pAnnotIds) { -- cgit