Bug 148883

Summary: FILESAVE Record Changes setting not saved into FODT
Product: LibreOffice Reporter: Aron Budea <aron.budea>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 83946, 117718    

Description Aron Budea 2022-05-02 07:14:24 UTC
In a new document, enable Edit -> Track Changes -> Record, save it as FODT, and reload.

=> Record changes is disabled.
This is fine when using ODT format.

Observed in LO 7.4.0.0.alpha0+ (8279d89d6e037def78f50c72fab2116ca56bef52), 3.3.0 / Ubuntu.

The setting is supposed to be stored in the XML as follows (taken from ODT):
<office:body>
    <office:text>
      <text:tracked-changes text:track-changes="true"/>

This is missing from the FODT, however if this last line is added manually, the setting is imported correctly, thus it's a FILESAVE issue.

The relevant code that disables the setting seems to be here:
https://opengrok.libreoffice.org/xref/core/sw/source/filter/xml/xmlexp.cxx?r=84213a42#283
Added in a 2001 commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=6af264883910fe31433b4164b1956f4f9ed75ecb