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 57b28c93a40b83cb35f1cfd8dba5f572424f5194
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 23 09:34:02 2026 -0400

    xmloff: don't write text in draw:object in ODF 1.2 mode
---
 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 34fa97cebb..c782e23ab2 100644
--- a/main/xmloff/source/draw/shapeexport2.cxx
+++ b/main/xmloff/source/draw/shapeexport2.cxx
@@ -1664,7 +1664,7 @@ void XMLShapeExport::ImpExportOLE2Shape(
                        SvXMLElementExport aElem( mrExport, XML_NAMESPACE_DRAW, 
eElem, sal_True, sal_True );
 
             // #i118485# Add text export, the draw OLE shape allows text now
-            ImpExportText( xShape );
+            if( mrExport.getDefaultVersion() != SvtSaveOptions::ODFVER_012 ) 
ImpExportText( xShape );
 
                        if(bExportEmbedded && !bIsEmptyPresObj)
                        {

Reply via email to