[evince] shell: Fix Max zoom in UI



commit 0a0a2d8c45e36f81d61d73e0bd71e7a6df720854
Author: Josà Aliste <jaliste src gnome org>
Date:   Wed Nov 28 10:52:12 2012 +0100

    shell: Fix Max zoom in UI
    
    The EphyZoom widget uses logical zoom (eg. 100%)  while the libview widget uses
    physical zoom, that is if logical zoom is 100% then scale will be 100%*dpi/72.0.

 shell/ev-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 2ad0512..1683b2c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4353,7 +4353,7 @@ ev_window_update_max_min_scale (EvWindow *window)
 
 	action = gtk_action_group_get_action (window->priv->action_group,
 					      ZOOM_CONTROL_ACTION);
-	ephy_zoom_action_set_max_zoom_level (EPHY_ZOOM_ACTION (action), max_scale * dpi);
+	ephy_zoom_action_set_max_zoom_level (EPHY_ZOOM_ACTION (action), max_scale);
 
 	ev_document_model_set_min_scale (window->priv->model, MIN_SCALE * dpi);
 	ev_document_model_set_max_scale (window->priv->model, max_scale * dpi);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]