diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-06 17:22:21 +0100 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-21 13:20:46 +0100 |
commit | a0fd6c4d1ea6d40573ad91922bf4e37992e87143 (patch) | |
tree | 88bbcb7b7b769fe61739f56a11f3a7bc61bdcf1c /drawinglayer/source/primitive2d | |
parent | c312dfb523f29acf40c2ccf74af30cce19be6697 (diff) |
Limit tagging of background objects to images
i.e. don't tag custom shapes and other than bitmap background fills
Change-Id: I1d42012420f59e1e7b62affb8aca5a8c85688423
Reviewed-on: https://gerrit.libreoffice.org/69258
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'drawinglayer/source/primitive2d')
-rw-r--r-- | drawinglayer/source/primitive2d/structuretagprimitive2d.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx b/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx index 41f5577efa16..c1aedc84a587 100644 --- a/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/structuretagprimitive2d.cxx @@ -31,10 +31,12 @@ namespace drawinglayer StructureTagPrimitive2D::StructureTagPrimitive2D( const vcl::PDFWriter::StructElement& rStructureElement, bool bBackground, + bool bIsImage, const Primitive2DContainer& rChildren) : GroupPrimitive2D(rChildren), maStructureElement(rStructureElement), - mbBackground(bBackground) + mbBackground(bBackground), + mbIsImage(bIsImage) { } @@ -44,7 +46,8 @@ namespace drawinglayer { const StructureTagPrimitive2D& rCompare = static_cast<const StructureTagPrimitive2D&>(rPrimitive); - return (isBackground() == rCompare.isBackground()); + return (isBackground() == rCompare.isBackground() && + isImage() == rCompare.isImage()); } return false; |