https://issues.apache.org/ooo/show_bug.cgi?id=78498

Oliver-Rainer Wittmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED

--- Comment #7 from Oliver-Rainer Wittmann <[email protected]> ---
(In reply to Clarence GUO from comment #6)
> Created attachment 83568 [details]
> a semi-fixpatch
> 
> 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?

The fix is the right one.
But the Writer has the following behavior when a new paragraph is inserted. The
new paragraph gets the attributes from its previous one. These attributes are
in general reset when a paragraph style is applied. The WW8 import always
applies a paragraph style. But certain attributes are kept when a paragraph
style is applied and the outline level attribute is one of them.

I am working on a solution.

-- 
You are receiving this mail because:
You are on the CC list for the issue.
You are watching all issue changes.

Reply via email to