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 c8b13970b20669a98d1d2225a233fbd66d30aa2f
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 23 07:03:21 2026 -0400

    xmloff: don't write a redline successor in ODF 1.2 mode
---
 main/xmloff/source/text/XMLRedlineExport.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main/xmloff/source/text/XMLRedlineExport.cxx 
b/main/xmloff/source/text/XMLRedlineExport.cxx
index b293cdf381..180c727555 100644
--- a/main/xmloff/source/text/XMLRedlineExport.cxx
+++ b/main/xmloff/source/text/XMLRedlineExport.cxx
@@ -414,7 +414,9 @@ void XMLRedlineExport::ExportChangedRegion(
 
        // if we actually got a hierarchical change, make element and
        // process change info
-       if (aSuccessorData.getLength() > 0)
+       // ODF 1.2 allows one change per changed region, so the successor is 
extended-mode only
+       if (aSuccessorData.getLength() > 0 &&
+               rExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012)
        {
                // The only change that can be "undone" is an insertion -
                // after all, you can't re-insert an deletion, but you can

Reply via email to