Situation 1: A word in a text is not formatted as italics. With "Record changes" enabled, italicize the word with direct-formatting. The change is recorded. Now if you reject the formatting, the word is in roman again. This behaviour is as one would expect.
However, situation 2: A word in a text is direct-formatted as italics. With "Record changes" enabled, italics-formatting is removed. The change is recorded. Now if you reject the change, the italics are not restored, but formatting stays in roman; at the same time, the word is not marked as changed anymore.
Repro OO and 7.2+ so I set New.
In 4.0 and 6.0 both situations were wrong. So good step could be to find where 1st was corrected.
Needs check for existing bug.
This works now after bug 50447 was fixed yesterday:
Version: 184.108.40.206.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
(saving to ods / docx still does not, however)
*** This bug has been marked as a duplicate of bug 50447 ***