Bug 162918 - EDITING footnotes in DOCX and RTF files with Track Changes on: text disappears
Summary: EDITING footnotes in DOCX and RTF files with Track Changes on: text disappears
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Footnote-Endnote RTF-Footnote-Endnote DOCX-Track-Changes RTF-Track-Changes
  Show dependency treegraph
 
Reported: 2024-09-11 10:59 UTC by Sam
Modified: 2024-09-12 06:43 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX file with 1 page of text including two footnotes (9.18 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-09-11 10:59 UTC, Sam
Details
RTF file with 1 page of text including two footnotes (7.93 KB, text/rtf)
2024-09-11 11:00 UTC, Sam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam 2024-09-11 10:59:09 UTC
Created attachment 196381 [details]
DOCX file with 1 page of text including two footnotes

Attached are two files with some text on one page. There are two footnotes in the text, and in each footnote there's a superfluous paragraph break.

1. Open the DOCX file.
2. Turn on Track Changes (Edit > Track Changes > Record).
3. Click into the first footnote, just before the superfluous paragraph break
4. Click delete on your keyboard so that the line below moves to the cursor position.
5. Do the same in footnote 2.
6. Close the file.
7. Follow steps 1 to 6 with the RTF file.
8. Reopen the DOCX file. Of footnote 2, the second part is deleted.
9. Reopen the RTF file. Of both footnotes, the first part is deleted.

Expected results: No text is deleted.

I noticed this behaviour with LO 24.8.0.3, but it has been there at least since LO 7.6.7.2.
Comment 1 Sam 2024-09-11 11:00:13 UTC
Created attachment 196382 [details]
RTF file with 1 page of text including two footnotes
Comment 2 Telesto 2024-09-11 13:04:02 UTC
Repro (only tested the DOCX part)
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c52f139b4f7140033144dde29f70a39ebedb6aa0
CPU threads: 4; OS: Windows 8.1 X86_64 (6.3 build 9600); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL threaded

also with
Version: 7.3.8.0.0+ (x64) / LibreOffice Community
Build ID: e1ad83ddb2f39419fb5d7c69eba51e2b9f49c788
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

fine with
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

It appears to be import issue. File saved with 25.2.0.0.alpha0+ opens fine with 7.1.8.0.0+ 

Note: the text doesn't really disappear. The paragraph is 'simply' marked as deleted
Comment 3 raal 2024-09-12 06:43:52 UTC
(In reply to Telesto from comment #2)
> It appears to be import issue. File saved with 25.2.0.0.alpha0+ opens fine
> with 7.1.8.0.0+ 
> 
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.2.
Adding Cc: to László Németh ; Could you possibly take a look at this one?
Thanks
 93d819a322e6351c4474db0f481fc8d939973bf9 is the first bad commit
commit 93d819a322e6351c4474db0f481fc8d939973bf9
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Feb 12 18:33:12 2021 +0100

    source 9b39ce0e66acfe812e1d50e530dc2ccdef3e1357

110811: tdf#76260 DOCX import: fix slow footnote import | https://gerrit.libreoffice.org/c/core/+/110811