Commit 6b6e0a8d authored by Troy Unrau's avatar Troy Unrau

Fixed zoom factor issue. When zooming out at 100%, you would end up at 80%,

but zooming in from 80% would give you 90%.  Zoom levels are now 
symmetrical when using toolbar zoom or CTRL+scrollmouse.

Thanks to pinotree to pointing out the appropriate code for me to fix.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708122
parent 32341102
......@@ -2273,7 +2273,7 @@ void PageView::updateZoom( ZoomMode newZoomMode )
newZoomMode = ZoomFixed;
break;
case ZoomOut:
newFactor -= (newFactor > 0.99) ? ( newFactor > 1.99 ? 0.5 : 0.2 ) : 0.1;
newFactor -= (newFactor > 1.01) ? ( newFactor > 2.01 ? 0.5 : 0.2 ) : 0.1;
newZoomMode = ZoomFixed;
break;
case ZoomFitWidth:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment