https://bugs.kde.org/show_bug.cgi?id=335819

--- Comment #21 from Markus Trippelsdorf <octopl...@yandex.com> ---
This one is the actually working fix. Sorry for the noise.

diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index 48d5d8df191c..383e5e4d2f8a 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -3667,6 +3667,7 @@ void PageView::updateZoom( ZoomMode newZoomMode )
             }
             else
             {
+                newFactor = *qLowerBound(zoomValue.begin(), zoomValue.end(),
newFactor);
                 i = qUpperBound(zoomValue.begin(), zoomValue.end(),
newFactor);
             }
             const float tmpFactor = *i;

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to