[Libreoffice-bugs] [Bug 136194] FILEOPEN Chapter numbering in a DOTX import is wrong in version 7.0, was OK in 6.4

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 26 19:07:19 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=136194

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|jluth at mail.com              |libreoffice-bugs at lists.free
                   |                            |desktop.org

--- Comment #14 from Justin L <jluth at mail.com> ---
136194_minimal.docx shows we import outline/chapter numbering completely
incorrectly in writerfilter. We have band-aids(plasters) everywhere, partially
covering a gaping wound.

When dealing with Heading 1 style, we get:
warn:legacy.osl:4046753:4046753:sw/source/core/txtnode/ndtxt.cxx:3887:
<HandleModifyAtTextNode()> - text node with outline style, but its paragraph
style is not assigned to outline style.
warn:legacy.osl:4046753:4046753:sw/source/core/doc/fmtcol.cxx:601:
<SwTextFormatColl::GetAssignedOutlineStyleLevel()> - misuse of method

But how to fix?  Somehow Chapter Numbering should NEVER be set UNLESS we are
confident that LibreOffice saved the docx.

I think this would be: the numId == 1, and it is never used in direct
formatting, and only used in styles where outlineLevel == listLevel (although
examples show that listLevel seems to be optional :-()
It should be irrelevant what the name of the paragraph style is.
(.doc format already does outlineLevel == listLevel)

Crude bandaid patch found at http://gerrit.libreoffice.org/c/core/+/114681

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210426/0eb78dea/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list