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

    xmloff: don't write additional chart shapes in ODF 1.0 and 1.1 modes
---
 main/xmloff/source/chart/SchXMLExport.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/xmloff/source/chart/SchXMLExport.cxx 
b/main/xmloff/source/chart/SchXMLExport.cxx
index 10ecc04342..330a93d45a 100644
--- a/main/xmloff/source/chart/SchXMLExport.cxx
+++ b/main/xmloff/source/chart/SchXMLExport.cxx
@@ -1594,7 +1594,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< 
chart::XChartDocument >&
             {
                 Any aShapesAny = xDocPropSet->getPropertyValue( 
OUString::createFromAscii( "AdditionalShapes" ));
                 aShapesAny >>= mxAdditionalShapes;
-                if( mrExport.getDefaultVersion() == SvtSaveOptions::ODFVER_012 
)
+                if( mrExport.getDefaultVersion() >= SvtSaveOptions::ODFVER_010 
&& mrExport.getDefaultVersion() <= SvtSaveOptions::ODFVER_012 )
                     mxAdditionalShapes.clear();
             }
             catch( uno::Exception & rEx )

Reply via email to