diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-07-10 20:42:07 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-07-11 12:51:40 +0200 |
commit | 41d8bb928231372f3ef08ce4ba3ea91b17e3ae29 (patch) | |
tree | e791ac6286be3fe506b774a1e00e19ddc725fb55 /drawinglayer/source | |
parent | 09c6ef36f43a9c7cc594c7e2d4044fee41a96406 (diff) |
(related tdf#154777) drawinglayer: add BBox to Figure fallback of forms
PAC3 complains if the BBox is missing.
Change-Id: I2cd61b2d01b64ffe77f28c661a3bd6f713df134f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154283
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index eae5980bf56c..aba9444b72e1 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1176,6 +1176,11 @@ void VclMetafileProcessor2D::processControlPrimitive2D( { // no corresponding PDF Form, use Figure instead mpPDFExtOutDevData->BeginStructureElement(vcl::PDFWriter::Figure); mpPDFExtOutDevData->SetStructureAttribute(vcl::PDFWriter::Placement, vcl::PDFWriter::Block); + auto const range(rControlPrimitive.getB2DRange(getViewInformation2D())); + tools::Rectangle const aLogicRect( + basegfx::fround(range.getMinX()), basegfx::fround(range.getMinY()), + basegfx::fround(range.getMaxX()), basegfx::fround(range.getMaxY())); + mpPDFExtOutDevData->SetStructureBoundingBox(aLogicRect); OUString const& rAltText(rControlPrimitive.GetAltText()); if (!rAltText.isEmpty()) { |