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

Markus Trippelsdorf octoploid at yandex.com
Tue Aug 19 10:14:00 UTC 2014


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

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


More information about the Okular-devel mailing list