Description: I have created a docx document in LibreOffice and edited it for a period. I wanted to customize the numbered headings (1.1.1 style) - the document is in an unwanted state and I cannot modify it without saving to .ODT first. I have attached a stripped down version of the problematic document. Steps to Reproduce: This is my guess, I have not tried. 1. edit a docx document for a while (do NOT save as ODT) 2. add numbering to the base Heading style (this is a mistake) 3. edit heading 1-4 to remove numbering 4. remove numbering from base heading style Actual Results: Chapter numbering are no longer affected by changes made in Functions->Chapter Numbering Expected Results: I would expect that I at any time could go to Functions->Chapter Numbering and add/remove numbering of heading 1-10 Reproducible: Didn't try User Profile Reset: No Additional Info: The problem goes away if I save the file as ODT and then reload it.
Created attachment 168405 [details] docx with corrupted chapter numbering
I used bibisect-linux-x64-6.4 to identify author Vasily Melenchuk on 2020-06-12 01:13:55 +0200 commit 129006ee5bec721bfb8bae9cd55586b353e230b7 tdf#120394: DOCX list import: simplify zero width space hack CC'd Vasily
I think the concern here is that there is no UI way to tinker with GetListFormat() once it gets a custom format. So the UI should void ClearListFormat() { sListFormat = std::nullopt; } if appropriate format options are changed. Prefix and suffix and show sublevel are obvious ones. [Sublevel should be enabled for level 1 if HasListFormat().]
proposed fix at http://gerrit.libreoffice.org/c/core/+/109839
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/55933f49f5a04708d27dc69e8778ec126646e3a5 tdf#139147 sw outline UI: allow clearing of custom list format It will be available in 7.2.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.
Peer - I hope this addresses the issue you raised here about being unable to adjust the heading via the UI. I have requested a backport to 7.1, so if that goes through, it should be in the fresh version in a month or two.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/89516b2be525a01862eacdef2276f0699ed87e3d tdf#139147 sw outline UI: allow clearing of custom list format It will be available in 7.1.1. 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.
(In reply to Justin L from comment #6) > Peer - I hope this addresses the issue you raised here about being unable to > adjust the heading via the UI. I have requested a backport to 7.1, so if > that goes through, it should be in the fresh version in a month or two. Ok. I'll check once 7.1 is released.
(In reply to Peer Sommerlund from comment #8) > Ok. I'll check once 7.1 is released. Please note that it will NOT be in 7.1.0 - it will be in 7.1.1, which will be about a month from now.