Bug 40929

Summary: Restart numbering is not saved for the first list in a sub-document (when viewed from master)
Product: LibreOffice Reporter: Pavel <pavel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: 3.3.1 release   
Hardware: All   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=45516
Whiteboard:
i915 platform: i915 features:
Attachments: ZIP containing master/sub ODTs showing renumbering problem

Description Pavel 2011-09-16 01:50:07 UTC
Create a new document with several lists, assigned to one list-style. Set "restart numbering" for the first items of the created lists. The attribute 'text:start-value="1"' is saved for all the lists, except the first one.

This is vital for using master-documents. Because of this issue, I have numbered lists in the second and later parts of the component document starting not with 1, instead, for example, with 3 or 5.

P.S. The workaround is to set the attribute in ODF file manually (it should not be cleared by resaving document from LibreOffice).
Another workaround is to use different list styles in different parts of the component document.
Comment 1 Björn Michaelsen 2011-12-23 12:33:55 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 2 Pavel 2011-12-25 23:38:10 UTC
Issue is still reproducing in the 3.5.0 beta2
Comment 3 Sina Momken 2013-07-25 04:40:10 UTC
I tried to reproduce this bug using LibreOffice 3.5.4.2 on Linux Mint Debain Edition. And I can admit that this bug is correct and I could reproduce it.
However you should note that for exactly reproducing this bug you should assign the same list-style to all the lists. To do so you must select all the lists, then press F11 to view all kind of styles, then select the "List Styles" button which is fifth button from the left to view all list-styles and then select the same list-style (e.g. "Numbering 1") for all the selected lists.

After doing all these steps and saving and reopening the ODT file, the "Restart Numbering" button is enabled for first items of all lists except the first list.

But after saving as DOC file and reopening it, not only the "Restart Numbering" button is disabled for all the items, but also each list now has different list-style (i.e. WW8Num3, WW8Num4 and WW8Num5).
Comment 4 Owen Genat 2015-01-18 08:39:10 UTC
Created attachment 112415 [details]
ZIP containing master/sub ODTs showing renumbering problem

(In reply to Pavel from comment #0)
> Create a new document with several lists, assigned to one list-style. Set
> "restart numbering" for the first items of the created lists. 

Attached example uses List 1 Start, List 1 Cont., and List 1 End paragraph styles, all associated with the Numbering 1 list style. Also tested with using only the List 1 paragraph style associated with the Numbering 1 list style (same behaviour).

> This is vital for using master-documents. Because of this issue, I have
> numbered lists in the second and later parts of the component document
> starting not with 1, instead, for example, with 3 or 5.

Confirmed. In the attached example, created under v3.6.7.2 the first list in the second sub-document (c.odt, when viewed from within a.odt) starts at item 4, rather than 1 as expected. Viewing the sub-document (c.odt) directly exhibits correct behaviour. Opening the example under these versions exhibits identical behaviour in all cases, so it appears inherited from OOo:

v3.3.4.1 OOO330m19 Build: 401
v3.4.6.2 OOO340m1 Build: 602
v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
v3.6.7.2 Build ID: e183d5b
v4.0.6.2 Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24
v4.1.6.2 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a
v4.2.8.2 Build ID: 48d50dbfc06349262c9d50868e5c1f630a573ebd
v4.3.5.2 Build ID: 3a87456aaa6a95c63eea1c1b3201acedf0751bd5
v4.4.0.2 Build ID: a3603970151a6ae2596acd62b70112f4d376b990

(In reply to Sina Momken from comment #3)
> ... but also each list now has different list-style 
> (i.e. WW8Num3, WW8Num4 and WW8Num5).

This is unrelated to the problem described by this report and is instead the result of saving to a non-ODF file format that does not support list styles e.g., MS Binary (DOC). Original report relates to ODF master/sub-documents.
Comment 5 Owen Genat 2015-01-18 08:41:36 UTC
As per comment 4, summary edited to be clear this issue relates to ordered list numbering in master/sub-documents.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.