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 15958a50b020fe138558b4a4ac14cf6507a75254 Author: Jim Jagielski <[email protected]> AuthorDate: Tue Oct 27 11:43:35 2026 -0400 sc: don't copy the original sheet text in ODF 1.2 strict mode --- main/sc/source/filter/xml/xmlwrap.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/sc/source/filter/xml/xmlwrap.cxx b/main/sc/source/filter/xml/xmlwrap.cxx index f88cad043a..534072fa6b 100644 --- a/main/sc/source/filter/xml/xmlwrap.cxx +++ b/main/sc/source/filter/xml/xmlwrap.cxx @@ -813,7 +813,8 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic // #i108978# If an embedded object is saved and no events are notified, don't use the stream // because without the ...DONE events, stream positions aren't updated. ScSheetSaveData* pSheetData = ScModelObj::getImplementation(xModel)->GetSheetSaveData(); - if (pSheetData && pSheetData->IsInSupportedSave()) + // strict ODF 1.2: no copying of sheet text that was loaded from a document that is not strict + if (pSheetData && pSheetData->IsInSupportedSave() && pExport->getDefaultVersion() != SvtSaveOptions::ODFVER_012) { try {
