This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit cc5a09edf8b8711a146022a3e145f047cf75c367 Author: Jim Jagielski <[email protected]> AuthorDate: Fri Oct 23 09:34:04 2026 -0400 xmloff: write svg:viewBox on connectors Sized as the svg:d path's bounding box plus 1 in each direction. --- main/xmloff/source/draw/shapeexport2.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/xmloff/source/draw/shapeexport2.cxx b/main/xmloff/source/draw/shapeexport2.cxx index c782e23ab2..918c062f3d 100644 --- a/main/xmloff/source/draw/shapeexport2.cxx +++ b/main/xmloff/source/draw/shapeexport2.cxx @@ -1451,6 +1451,10 @@ void XMLShapeExport::ImpExportConnectorShape( // write point array mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_D, aPolygonString); + + const basegfx::B2DRange aPathRange(basegfx::tools::getRange(aPolyPolygon)); + SdXMLImExViewBox aViewBox(0, 0, FRound(aPathRange.getWidth()) + 1, FRound(aPathRange.getHeight()) + 1); + mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_VIEWBOX, aViewBox.GetExportString()); } }
