Bug 501048

Summary: Clicking an index entry in "Facing pages" mode navigates to the wrong page
Product: [Applications] okular Reporter: jorgemartinezvegara
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: john.kizer
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=452430
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Before clicking
After clicking

Description jorgemartinezvegara 2025-03-04 10:58:05 UTC
Clicking on an index entry in "Facing pages" view mode scrolls to the wrong page.

STEPS TO REPRODUCE

1. Open a PDF file in Okular.
2. Set the view mode to "Facing pages" (View → View Mode → Facing pages).
3. Click on an entry in the index to navigate to a specific section.

OBSERVED RESULT
Okular jumps to the wrong page instead of the one linked in the index.

EXPECTED RESULT
Okular should navigate to the correct page when clicking an entry in the index, as it does in "Single page" mode.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 jorgemartinezvegara 2025-03-04 10:58:50 UTC
Created attachment 179106 [details]
Before clicking
Comment 2 jorgemartinezvegara 2025-03-04 10:59:04 UTC
Created attachment 179107 [details]
After clicking
Comment 3 John Kizer 2025-03-16 16:59:40 UTC
I can reproduce this on Fedora KDE 41, Okular 24.12.3. Thanks!
Comment 4 John Kizer 2025-03-17 17:39:50 UTC
I'm not sure if it's strictly a duplicate, but https://bugs.kde.org/show_bug.cgi?id=452430 seems at least probably related?