[Libreoffice] [PATCH] sw: reset num level on SplitNode if parent is outline.

Octavio Alvarez alvarezp at alvarezp.ods.org
Wed Dec 15 08:03:07 PST 2010


On Tue, 14 Dec 2010 23:16:41 -0800, Octavio Alvarez
<alvarezp at alvarezp.ods.org> wrote:

> On Tue, 14 Dec 2010 21:59:37 -0800, Octavio Alvarez
> <alvarezp at alvarezp.ods.org> wrote:
>
>> Fixes the following scenario:
>> 1. Create a paragraph style "S" bound to a list style.
>> 2. Set the Heading 2 next style to "S".
>> 3. Pressing ENTER at the end of a Heading 2 will create the new
>>    paragraph, but its numbering level will be set to 2.
>>
>> If this test is repeated for "Heading 3", the resulting paragraph
>> will end up with numbering level == 3.

There is another section of the file that uses a similar code.

I'm not sure if I should also apply it there too:
source/core/txtnode/ndtxt.cxx, SwTxtNode::AppendNode

Thanks.
-- 
Octavio.

Twitter: @alvarezp2000 -- Identi.ca: @alvarezp


More information about the LibreOffice mailing list