When I insert Manual Break with "Default Style", I can select "Change page number" with value 0. It works and the next page is 0, but when I close the document and re-open, the page doesn't saved and is consecutive from the previous page.
This problem doesn't ocurr when I select value 1 or more: the document closed and restored ok.
Example 1 (Problem):
- Creating document aaa
- Manual break starting page 0
- Save and close aaa
- Open aaa
Example 2 (No problem):
- Creating document bbb
- Manual break starting page 1
- Save and close bbb
- Open bbb
I can confirm the bug in LO 22.214.171.124 and LO 5.0 (trunk). The bug seems to be triggered by setting page-number to 0. If saving to odt content.xml contains the following line with "auto" instead of "0".
Same works in docx so its a odt only bug.
This seems to be a regression from commit 22355042a6fc7aecf3caab69b3fa3be1430b697f or bug #72452. However, it seems 0 is somehow not allowed in ODT. Therefore, its not clear to me how to fix this properly. There a several options:
a) Revert the "auto" part from the commit and allow to write 0 to ODT (need to change specs?)
b) Disallow 0 in gui (what happens when importing docx with page-number 0?)
c) Fix it in another way?
it's not a regression because page number 0 is a new feature (for MSO interop).
as the commit from comment #3 says:
Unfortunately the type of style:page-number is positiveInteger so
writing 0 would be invalid; write "auto" instead for now.
maybe we should do something about preventing 0 in the UI,
so it can only be set when you import MSO documents.
I agree that b) is probably the best option. However, what should happen if sb loads an docx and saves it to odt? A warning that he might loose functionality because he uses odt? Would look kind of odd to me.
(In reply to Michael Stahl from comment #3)
> maybe we should do something about preventing 0 in the UI,
> so it can only be set when you import MSO documents.
Or maybe file this with OASIS:
--- OpenDocument-v1.2-cs01-schema.rng 2016-02-10 11:17:46.078922673 +0100
+++ OpenDocument-v1.2-cs01-schema.rng 2016-04-29 15:02:57.099053854 +0200
@@ -15663,7 +15663,7 @@
- <ref name="positiveInteger"/>
+ <ref name="nonNegativeInteger"/>
? It's a widening spec change, so perhaps uncontroversial?
filed OASIS proposal
Sorry, but in the new release version this bug is not solved.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
the OASIS proposal was accepted for ODF 1.3 so we just need to wait until the process is a bit further along with some committee draft or so and we have an ODF 1.3 export, then we can fix it
(In reply to Michael Stahl from comment #9)
> the OASIS proposal was accepted for ODF 1.3 so we just need to wait until
> the process is a bit further along with some committee draft or so and we
> have an ODF 1.3 export, then we can fix it
Thanks Michael for the clarification (the recent LO 6.0.6 have the same issue).