This is a bug found when analyzing bug 49785. When importing a DOCX saved from an ODT, which has some overridden font properties (size, font, underline, italic, etc.), changing any of these overridden values of the item won't be reflected in the number. This is quite probably the result of the different numbering font properties between the ODT and the DOCX import. While for ODT these values are stored in the SwAttrSet, for the imported DOCX they are stored as SwpHints. This needs some further investigation.
Created attachment 154284 [details] ODT with three numbered items
Created attachment 154285 [details] DOCX with three numbered items generated in Word
Created attachment 154286 [details] DOCX with three numbered items generated in LO
To reproduce: 1. Open one of the DOCX. 2. Select the text of one of the formated number items (italic / bold) 3.1 Remove the respective formating 3.2 Change the formating in any other way 4. Save the DOCX as ODT 5. Re-open the ODT 6. Changing any formating works again. Result: 3.1 The changed formating is *not* reflected in the number. 3.2 The changed formating is reflected in the number. Expected result: 3.1 The formating should be reflected in the number. 3.2 Works as expected. Conclusion: There seems to be a bug in the DOCX import filter.
Looks like formatting not reflected just for removal of imported status, regardless if direct or Ctrl+M. Setting other format works. New.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/6287845eab339a8eb3c660d648d012e9f1dcce30 tdf#127606 DOCX lists: fix unchangeable formatting It will be available in 7.0.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.
Note: Ctrl-M isn't supported, only modifying character formatting of the whole paragraph will remove the compatibility paragraph setting, to avoid of unwanted formatting changes.
László Németh committed a patch related to this issue. It has been pushed to "libreoffice-6-4": https://git.libreoffice.org/core/commit/11768f901b4c9e34e598187a31adf5028377c65c tdf#127606 DOCX lists: fix unchangeable formatting It will be available in 6.4.4. 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.