Bug 148883 - FILESAVE Record Changes setting not saved into FODT
Summary: FILESAVE Record Changes setting not saved into FODT
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Track-Changes ODF-Flat
  Show dependency treegraph
 
Reported: 2022-05-02 07:14 UTC by Aron Budea
Modified: 2022-05-02 08:06 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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