From 05f5c18959cb86c7893b4a2bb45cce52f1f58c53 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Tue, 12 Mar 2019 15:30:35 +0100 Subject: Close all opened List elements at the end of the page Change-Id: I7c1e11ec57537441417f6b1cebe137587883d8c1 Reviewed-on: https://gerrit.libreoffice.org/69259 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 40eec9fc4245..43676ae674f7 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1338,6 +1338,14 @@ namespace drawinglayer // add MetaFile comment, process recursively and add MetaFile comment mpMetaFile->AddAction(new MetaCommentAction(aCommentStringA)); process(rBlockPrimitive); + + if (mnCurrentOutlineLevel >= 0 ) + { + // end any opened List structure elements + for(sal_Int16 i(0); i <= mnCurrentOutlineLevel; ++i) + mpPDFExtOutDevData->EndStructureElement(); + } + mpMetaFile->AddAction(new MetaCommentAction(aCommentStringB)); } -- cgit v1.2.3