summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-03-12 15:30:35 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2019-03-21 13:21:29 +0100
commit05f5c18959cb86c7893b4a2bb45cce52f1f58c53 (patch)
tree9b06f147945a52cc54e470a9fcec7109667815bf
parenta0fd6c4d1ea6d40573ad91922bf4e37992e87143 (diff)
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 <Katarina.Behrens@cib.de>
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx8
1 files changed, 8 insertions, 0 deletions
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));
}