Bug 215463

Summary: Switching from "Single page" to "Facing pages" goes to end of document
Product: [Applications] okular Reporter: Nicolas Bigaouette <nbigaouette>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nicolas Bigaouette 2009-11-20 19:06:20 UTC
Version:            (using KDE 4.3.3)
Compiler:          gcc version 4.4.2 (GCC) ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
OS:                Linux
Installed from:    Archlinux Packages

When switching from "Single page" mode to "Facing pages" mode, okular goes to the last page instead of showing the previously focused page.

Note that this happens only when page number 4 and up is previously focused in "Single page" mode. When page 1 to 3 is focused, the switch between modes respect the previous page focus.
Comment 1 Albert Astals Cid 2009-11-20 21:52:55 UTC
SVN commit 1052137 by aacid:

Get the viewport before resizing the canvas otherwise the canvas resizal makes the viewport change and later we end up with an incorrect viewport
BUGS: 215463


 M  +1 -1      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1052137
Comment 2 Albert Astals Cid 2009-11-20 21:55:12 UTC
SVN commit 1052139 by aacid:

Backport r1052137 | aacid | 2009-11-20 21:52:51 +0100 (Fri, 20 Nov 2009) | 3 lines

Get the viewport before resizing the canvas otherwise the canvas resizal makes the viewport change and later we end up with an incorrect viewport
BUGS: 215463


 M  +1 -1      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1052139