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

--- Comment #20 from Markus Trippelsdorf <octopl...@yandex.com> ---
Posted the wrong patch. This one fixes the issue for me:

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

-- 
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