Bug 168740 - FILEOPEN DOCX Overlapping redlines: Accept button accepts several changes
Summary: FILEOPEN DOCX Overlapping redlines: Accept button accepts several changes
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Track-Changes
  Show dependency treegraph
 
Reported: 2025-10-08 08:49 UTC by Gabor Kelemen (Collabora)
Modified: 2025-10-08 08:49 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Example file from Word with overlapping delete+insert (12.60 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-10-08 08:49 UTC, Gabor Kelemen (Collabora)
Details
The document opened in Writer (61.03 KB, image/png)
2025-10-08 08:49 UTC, Gabor Kelemen (Collabora)
Details
The document after pressing Accept on the first change (63.46 KB, image/png)
2025-10-08 08:49 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-10-08 08:49:04 UTC
Created attachment 203200 [details]
Example file from Word with overlapping delete+insert

Attached example file contains two tracked changes, one insertion and one deletion that partially overlaps the insertion.
This is imported into Writer as four changes, but then pressing Accept on the first one in the list (the non-overlapping part of the deletion) accepts three changes: the non-overlapping part of the deletion, the overlapping part of the deletion and the overlapped part of the insertion.

1. Open attached file
2. Go to the Manage Changes section in the sidebar
3. Select the first tracked change (deletion of "adipiscing elit. ")
4. Press Accept (or Reject)
-> only one tracked change remains to be accepted/rejected instead of three.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 708abf24664a9a1aaeac452bcc8436026030e74e
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

Maybe the visual representation in the list should be changed, so that the change tree in Manage Changes represents better what can be accepted / rejected in a single step.

This is also another example for bug 168737 : Reject All leaves one change behind to be accepted/rejected.
Comment 1 Gabor Kelemen (Collabora) 2025-10-08 08:49:21 UTC
Created attachment 203201 [details]
The document opened in Writer
Comment 2 Gabor Kelemen (Collabora) 2025-10-08 08:49:52 UTC
Created attachment 203202 [details]
The document after pressing Accept on the first change