Clarence GUO <[email protected]> has asked for review: Issue 78498: WW8: imported TOC empty, due to paragraphs having "outline level" property https://issues.apache.org/ooo/show_bug.cgi?id=78498
Attachment 83568: a semi-fixpatch https://issues.apache.org/ooo/attachment.cgi?id=83568&action=edit ------- Additional Comments from Clarence GUO <[email protected]> The patch can partial fix the problem but it is not satisfied. I just put it here for more input and discussion from others because I only have very little knowledge on document. Without the fix code, there's not any paragraphs in the total three paragraphs of the sample was applied outline level. With the fix code, from my debugging, I saw the code was only called twice to apply outline level attribute to two text notes. But I checked the outline level of the three paragraphs from paragraph attribute, the three paragraphs were all applied outline level. I haven't found any other places set this attribute. If the wrong set was introduced by my code, but my code only set the attribute for two text nodes. If the wrong set was introduced by other code, why without my code, none of the paragraphs were applied outline level. Is my fix code correct? maybe I'm wrong. Could anybody can teach me on this?
