diff options
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 8 |
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)); } |