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

    xmloff: don't write additional chart shapes in ODF 1.2 mode
---
 main/xmloff/source/chart/SchXMLExport.cxx | 2 ++
 1 file changed, 2 insertions(+)

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

Reply via email to