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>
This commit is contained in:
Katarina Behrens 2019-03-12 15:30:35 +01:00
parent a0fd6c4d1e
commit 05f5c18959

View File

@ -1338,6 +1338,14 @@ namespace drawinglayer
// add MetaFile comment, process recursively and add MetaFile comment // add MetaFile comment, process recursively and add MetaFile comment
mpMetaFile->AddAction(new MetaCommentAction(aCommentStringA)); mpMetaFile->AddAction(new MetaCommentAction(aCommentStringA));
process(rBlockPrimitive); 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)); mpMetaFile->AddAction(new MetaCommentAction(aCommentStringB));
} }