Bug 149479 - Not all pages shows a number when changing the offset of the page number
Summary: Not all pages shows a number when changing the offset of the page number
Status: RESOLVED DUPLICATE of bug 35694
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-07 14:05 UTC by Andre Labuschagne
Modified: 2024-03-25 13:38 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Labuschagne 2022-06-07 14:05:09 UTC
Description:
Each chapter is a new document and I have Page X of Y in the footer of the page.  Let's say chapter 3's first page is Page 4 of Y. I change the page number offset to 3 and it works correctly for Pages 4 to 7, then on pages 8 to 10 it just shows a half width light grey field box/placeholder but no number. Printing or exporting to pdf still shows the blank page number for pages 8 to 10.  Happens in other files having different amount of pages.

Steps to Reproduce:
1. Create document with a few pages 
2. Create default footer
3. Insert -> Field -> page number
4. Open fields dlg (ctrl + F2), select Page number and change the offset to 1 less than what the first page should be
5. Insert new number in footer. (Can delete the old number)
6. Scroll to last pages and verify the new number wasn't inserted
OR
1. As above from step 1 to 3
2. Right click on the page number and select Edit field
3. Change the offset to one less than the desired first page
4. Scroll to last pages and verify the new number wasn't inserted

Actual Results:
Page 4 to 7 shows page number, page 8 to 10 doesn't

Expected Results:
All pages to show their respective numbers 


Reproducible: Always


User Profile Reset: No



Additional Info:
All pages to show their respective numbers
Comment 1 Mike Kaganski 2022-06-07 14:18:34 UTC
Offset is not designed to change the current page number. Instead, it is designed to point to a page several pages before or after the current. As such, when there is no page that many pages from the current, there's nothing to show as its number.

If you need to define the current page number, please use the paragraph properties, as explained at FAQ [1].

Closing NOTABUG.

[1] https://wiki.documentfoundation.org/Faq/Writer/104
Comment 2 Timur 2022-06-07 14:30:19 UTC
Please search before reporting, many duplicates on this one from bug 35694.
Comment 3 Mike Kaganski 2024-03-25 13:38:04 UTC

*** This bug has been marked as a duplicate of bug 35694 ***