Bug 126516 - FILEOPEN DOCX Rejecting multi-paragraph deletion destroys change tracking of formatting
Summary: FILEOPEN DOCX Rejecting multi-paragraph deletion destroys change tracking of ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:6.4.0
Keywords: regression
Depends on:
Blocks: DOCX-Track-Changes
  Show dependency treegraph
 
Reported: 2019-07-23 10:12 UTC by NISZ LibreOffice Team
Modified: 2019-07-29 23:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (20.06 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-07-23 10:13 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Word and Writer after rejecting changes (70.35 KB, image/png)
2019-07-23 10:13 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-07-23 10:12:49 UTC
Description:
Attached Word document has change tracked paragraph formatting set to multiple paragraphs, then parts of these paragraphs was deleted. 
Rejecting the deletion in Writer causes the formatting to stay only in the third paragraph instead of the second and third.


Steps to Reproduce:
1.	Open attached file
2.	Reject the text deletion change
3.	Reject the formatting change


Actual Results:
Formatting of the third paragraph is restored to Heading 3, but Heading 1 is unchanged in the second paragraph.

Expected Results:
In Word rejecting the deletion then rejecting the formatting change restores the second paragraphs formatting to Heading 2 and the third paragraphs to Heading 3.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:
Version: 6.4.0.0.alpha0+ (x86)
Build ID: 382aceb80d3c0f420d51762e1f88eee2334ff11b
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-07-21_23:45:18
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2019-07-23 10:13:16 UTC
Created attachment 152957 [details]
Example file from Word
Comment 2 NISZ LibreOffice Team 2019-07-23 10:13:32 UTC
Created attachment 152958 [details]
Screenshot of the original document side by side in Word and Writer after rejecting changes
Comment 3 László Németh 2019-07-24 15:00:36 UTC
Fixed in https://gerrit.libreoffice.org/#/c/76154/

https://gerrit.libreoffice.org/plugins/gitiles/core/+/5ab9cbe7f8d0c0bfd6a2fe1de2e14dfe201d008b%5E%21

tdf#126516 DOCX change tracking: fix paragraph style rejection

by keeping paragraph-level ParagraphFormat redlines.

(regression from commit a5abe0fc4d435d3a7a7de8bf55ec74087fdd299a
"tdf#125546 DOCX import: fix overgrowth of change tracking entries")