Bug 160348 - "Go to page" silently fails if page doesn't exist
Summary: "Go to page" silently fails if page doesn't exist
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Go-To-Page
  Show dependency treegraph
 
Reported: 2024-03-25 09:29 UTC by Luke Kendall
Modified: 2025-10-20 20:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
example .odt file (149.60 KB, application/vnd.oasis.opendocument.text)
2024-07-12 06:32 UTC, Luke Kendall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kendall 2024-03-25 09:29:23 UTC
If for example you have page styles defined so that the start of a book (after an introductory section) forces the next page to skip a page (e.g. so that page one starts on an odd numbered page), and you use Go To page to jump to that (e.g. the TOC to update it), the Go To Page will simply do nothing.

Suggestion: Instead of failing, Writer should jump to the closest page to the non-existent page number.

Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 1 wjsim 2024-03-25 14:46:22 UTC
Hi there, thank you for reporting the bug.

Could you please provide a sample document for testing?
Comment 2 Luke Kendall 2024-07-12 06:32:43 UTC
Created attachment 195257 [details]
example .odt file

Example document to reproduce the problem
Comment 3 Buovjaga 2024-08-26 14:59:58 UTC
(In reply to Luke Kendall from comment #2)
> Created attachment 195257 [details]
> example .odt file
> 
> Example document to reproduce the problem

I opened the document, went to Edit - Go to Page, input 12 and it jumped to 11. Based on the description, isn't this what you wanted ("instead of failing, Writer should jump to the closest page to the non-existent page number")? If not, please give exact steps to reproduce.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5a0576db4b7c0e2597e71d454c87f43ffda74fd2
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 26 August 2024
Comment 4 Luke Kendall 2024-08-26 15:09:27 UTC
For me, in Go to page, it won't let me enter a number greater than the number in the document. So for me, I couldn't enter "12" for example, to see what that might do.

Anyway:

1. Open the file provided.
2. Go to the end of the document.
3. Use Go to Page and enter 8; hit enter

Result:
You are still at the end of the document.

Expected result:
It would go to a page adjacent to the non-existent page 8.
Comment 5 Buovjaga 2024-08-26 15:28:19 UTC
(In reply to Luke Kendall from comment #4)
> For me, in Go to page, it won't let me enter a number greater than the
> number in the document. So for me, I couldn't enter "12" for example, to see
> what that might do.
> 
> Anyway:
> 
> 1. Open the file provided.
> 2. Go to the end of the document.
> 3. Use Go to Page and enter 8; hit enter
> 
> Result:
> You are still at the end of the document.
> 
> Expected result:
> It would go to a page adjacent to the non-existent page 8.

For me, it jumps to the division of page 7 and 8. Can you try with a newer version?
Comment 6 QA Administrators 2025-02-23 03:11:22 UTC Comment hidden (obsolete)
Comment 7 Luke Kendall 2025-02-23 06:16:35 UTC
It's also present in 

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-GB (en_AU.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.2
Calc: threaded

if that helps?
Comment 8 Buovjaga 2025-02-23 07:30:23 UTC
Still working fine for me. I'm wondering why in comment 4 you talk about "the non-existent page 8", when the page does exist.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 45cfeed90899ff43015d9ee9e3bbf42ea07d8992
CPU threads: 8; OS: Linux 6.13; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Comment 9 raal 2025-10-20 20:16:14 UTC
I can confirm with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2595f031fa93c1eb89fb4dce6f337de9be813e15
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded