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

    xmloff: don't write text in draw:object 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 918c062f3d..18b99a8abd 100644
--- a/main/xmloff/source/draw/shapeexport2.cxx
+++ b/main/xmloff/source/draw/shapeexport2.cxx
@@ -1668,7 +1668,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
-            if( mrExport.getDefaultVersion() != SvtSaveOptions::ODFVER_012 ) 
ImpExportText( xShape );
+            if( mrExport.getDefaultVersion() < SvtSaveOptions::ODFVER_010 || 
mrExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012 ) ImpExportText( 
xShape );
 
                        if(bExportEmbedded && !bIsEmptyPresObj)
                        {

Reply via email to