Created attachment 174382 [details] Example file from Writer This is a followup to bug 50447 When a character style is set on a paragraph in some cases the change tracked modification of that to another character style does not restore the original character style. Steps to reproduce: 1. Open attached file, it contains a few paragraph of lorem ipsum formatted with Quotation character style and change tracking is enabled 2. Triple click on a paragraph to highlight it entirely 3. In the Navigator select another character style, such as Strong Emphasis; or a direct character formatting from the Formatting toolbar such as Underlined 4. Reject the tracked change Actual results: The paragraphs character formatting becomes No character style. Expected results: The Quotation character formatting is restored. LibreOffice details: Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: dd3ab0fd737ff84657ff34eebafe2628f489e5a1 CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: CL
Created attachment 174383 [details] Screenshot of the original document in Writer
Created attachment 174384 [details] Screenshot of the document after changing the whole paragraphs character style
Created attachment 174385 [details] Screenshot of the document after rejecting the change
tdf#143938 sw test: track format changes of the paragraph Character formatting changes of the wholly selected paragraph weren't tracked before the following fix: commit 5e891c2ee82f2d7566ddb4e15b9c03cecb9fc1f8 "tdf#143939 sw: track format changes of the actual word". This is only an unit test to cover both fixed problems.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/400a44261c3891c1fb99b5339ada69cbc4777dd0 tdf#143938 sw test: track format changes of the paragraph It will be available in 7.3.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.
Verified in: Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: d5ade739771ddf06cc7ee6d4af15672bfcf09ed6 CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: default; VCL: win Locale: hu-HU (hu_HU); UI: hu-HU Calc: threaded