[Okular-devel] [okular] [Bug 335819] Zooming in doesn't work on certain documents.

Markus Trippelsdorf octoploid at yandex.com
Tue Aug 19 10:07:56 UTC 2014


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

--- Comment #20 from Markus Trippelsdorf <octoploid at 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.


More information about the Okular-devel mailing list