Bug#975919: okular: Back and Forward navigation functions are broken
Package: okular
Version: 4:20.08.3-1
Severity: important
Tags: upstream patch
Dear maintainers,
Recent updates to okular have completely broken its Back and Forward
navigation functions (those found in the Go menu and bound to
Alt-Shift-Left and Alt-Shift-Right by default). This has been reported
upstream at [1] and fixed in commit 585340cef[2] (link found in this
comment[3] by Nate Graham on the bug report page[1]).
I have rebuilt okular 4:20.08.3-1 with the attached debdiff, which
merely applies the patch corresponding to [2]. This fixes the issue for
me. Hope this helps other users.
Thanks & regards
[1] https://bugs.kde.org/show_bug.cgi?id=414701
[2] https://invent.kde.org/graphics/okular/commit/585340cef5ca4dd1e26fe3baea1cf396f8de6469
[3] https://bugs.kde.org/show_bug.cgi?id=414701#c24
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.9.0-3-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages okular depends on:
ii kinit 5.74.0-2
ii kio 5.74.0-2
ii libc6 2.31-4
ii libfreetype6 2.10.2+dfsg-4
ii libjpeg62-turbo 1:2.0.5-1.1
ii libkf5activities5 5.74.0-2
ii libkf5archive5 5.74.0-2
ii libkf5bookmarks5 5.74.0-2
ii libkf5codecs5 5.74.0-2
ii libkf5completion5 5.74.0-2
ii libkf5configcore5 5.74.0-2
ii libkf5configgui5 5.74.0-2
ii libkf5configwidgets5 5.74.0-2
ii libkf5coreaddons5 5.74.0-2
ii libkf5crash5 5.74.0-2
ii libkf5i18n5 5.74.0-3
ii libkf5iconthemes5 5.74.0-2
ii libkf5itemviews5 5.74.0-2
ii libkf5jobwidgets5 5.74.0-2
ii libkf5kexiv2-15.0.0 20.04.3-1
ii libkf5kiocore5 5.74.0-2
ii libkf5kiowidgets5 5.74.0-2
ii libkf5parts5 5.74.0-2
ii libkf5pty5 5.74.0-2
ii libkf5purpose-bin 5.74.0-2
ii libkf5purpose5 5.74.0-2
ii libkf5service-bin 5.74.0-2
ii libkf5service5 5.74.0-2
ii libkf5textwidgets5 5.74.0-2
ii libkf5wallet-bin 5.74.0-2
ii libkf5wallet5 5.74.0-2
ii libkf5widgetsaddons5 5.74.0-3
ii libkf5windowsystem5 5.74.0-2
ii libkf5xmlgui5 5.74.0-2+b1
ii libokular5core9 4:20.08.3-1
ii libphonon4qt5-4 4:4.11.1-3
ii libpoppler-qt5-1 20.09.0-3
ii libqca-qt5-2 2.3.1-1
ii libqmobipocket2 4:20.04.3-1
ii libqt5core5a 5.15.1+dfsg-4
ii libqt5dbus5 5.15.1+dfsg-4
ii libqt5gui5 5.15.1+dfsg-4
ii libqt5printsupport5 5.15.1+dfsg-4
ii libqt5svg5 5.15.1-2
ii libqt5texttospeech5 5.15.1-2
ii libqt5widgets5 5.15.1+dfsg-4
ii libqt5xml5 5.15.1+dfsg-4
ii libspectre1 0.2.9-1
ii libstdc++6 10.2.0-19
ii phonon4qt5 4:4.11.1-3
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages okular recommends:
ii cups-bsd 2.3.3-4
Versions of packages okular suggests:
ii ghostscript 9.53.3~dfsg-5
ii okular-extra-backends 4:20.08.3-1
ii poppler-data 0.4.10-1
ii texlive-binaries 2020.20200327.54578-5
ii unrar 1:5.9.4-1
-- no debconf information
diff -Nru okular-20.08.3/debian/changelog okular-20.08.3/debian/changelog
--- okular-20.08.3/debian/changelog 2020-11-08 13:41:37.000000000 +0100
+++ okular-20.08.3/debian/changelog 2020-11-25 22:25:47.000000000 +0100
@@ -1,3 +1,9 @@
+okular (4:20.08.3-2~frougon.0) unstable; urgency=medium
+
+ * Add patch debian/patches/fix-back-and-forward-navigation.patch, which corresponds to <https://invent.kde.org/graphics/okular/commit/585340cef5ca4dd1e26fe3baea1cf396f8de6469>.
+
+ -- Florent Rougon <f.rougon@free.fr> Wed, 25 Nov 2020 22:25:47 +0100
+
okular (4:20.08.3-1) unstable; urgency=medium
* Team upload.
diff -Nru okular-20.08.3/debian/patches/fix-back-and-forward-navigation.patch okular-20.08.3/debian/patches/fix-back-and-forward-navigation.patch
--- okular-20.08.3/debian/patches/fix-back-and-forward-navigation.patch 1970-01-01 01:00:00.000000000 +0100
+++ okular-20.08.3/debian/patches/fix-back-and-forward-navigation.patch 2020-11-25 22:24:14.000000000 +0100
@@ -0,0 +1,11 @@
+--- a/ui/pageview.cpp
++++ b/ui/pageview.cpp
+@@ -4509,7 +4509,7 @@
+ newViewport.rePos.normalizedY = focusedY;
+ // set the viewport to other observers
+ // do not update history if the viewport is autoscrolling
+- d->document->setViewportWithHistory(newViewport, this, false, d->scroller->state() == QScroller::Scrolling);
++ d->document->setViewportWithHistory(newViewport, this, false, d->scroller->state() != QScroller::Scrolling);
+ }
+ d->document->setVisiblePageRects(visibleRects, this);
+ }
diff -Nru okular-20.08.3/debian/patches/series okular-20.08.3/debian/patches/series
--- okular-20.08.3/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ okular-20.08.3/debian/patches/series 2020-11-25 22:21:05.000000000 +0100
@@ -0,0 +1 @@
+fix-back-and-forward-navigation.patch
Reply to: