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 c5e6b715d6aea4f94b9622b974c237cbadf81d8e
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 23 10:26:49 2026 -0400

    xmloff: don't write svg:viewBox on connectors in ODF 1.0 and 1.1 modes
---
 main/xmloff/source/draw/shapeexport2.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/xmloff/source/draw/shapeexport2.cxx 
b/main/xmloff/source/draw/shapeexport2.cxx
index 18b99a8abd..c215a536c5 100644
--- a/main/xmloff/source/draw/shapeexport2.cxx
+++ b/main/xmloff/source/draw/shapeexport2.cxx
@@ -1454,7 +1454,7 @@ void XMLShapeExport::ImpExportConnectorShape(
 
             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());
+            if( mrExport.getDefaultVersion() < SvtSaveOptions::ODFVER_010 || 
mrExport.getDefaultVersion() >= SvtSaveOptions::ODFVER_012 ) 
mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_VIEWBOX, 
aViewBox.GetExportString());
         }
     }
 

Reply via email to