Description: Attached example file was made in Word and contains change tracking entries about paragraph style changes. These can be rejected in Word and the original paragraph style is restored. After saving the file in Writer this is not possible: Normal style is restored after rejecting the changes in Word. Steps to Reproduce: 1. Create a simple document in Word with two paragraphs and format the second with Heading 2 2. Turn on change tracking and modify the style to Heading 3 3. Save the file, open it in Writer, save it with a different name 4. Open the original and the roundtripped file in Word 5. Reject both changes Actual Results: In the roundtripped file the second paragraphs style becomes Normal instead of the original Heading 2 Expected Results: The style change can be reverted in the roundtripped file in Word. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.0.0.alpha0+ (x86) Build ID: 81ab6abe574a75f1ed229a88ceee9eb3b143a18a CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-07-02_02:29:05 Locale: hu-HU (hu_HU); UI-Language: en-US Calc: CL
Created attachment 152577 [details] Example file from Word
Created attachment 152578 [details] The original file saved by Writer
Created attachment 152579 [details] Screenshot of the original and exported document side by side in Word
Created attachment 152580 [details] Screenshot of the original and exported document side by side in Word after rejecting the changes
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/4248d759744f83a68d334a8b347124719a2886a8%5E%21 tdf#126243 DOCX: export/reject tracked paragraph style change It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 153039 [details] Screenshot of the original and the roundtripped document in Word and Writer In current version: Version: 6.4.0.0.alpha0+ (x86) Build ID: 382aceb80d3c0f420d51762e1f88eee2334ff11b CPU threads: 4; OS: Windows 6.3; UI render: default; 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 Writer can retain the original paragraph style after rejecting the changes in the roundtripped file, but Word still loses it.
Created attachment 153040 [details] The original file saved by current 6.4 master
Let me reopen this. In the original request we meant interop with Word :)
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/7f38fabe3f723c85482c91ce6586e38081ee013f%5E%21 tdf#126243 DOCX change tracking: pStyle needs simplified style id It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
@Szabolcs, Gábor: thanks for the verification!