summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-03-06 09:28:13 -0500
committerVictor Kareh <[email protected]>2026-04-10 11:37:36 -0400
commit6f3a0a2f8faa37d5e9de5f4d794e9e9c1d693c85 (patch)
treebbe27a0d209842bf204848d420637a2b36f545e1
parent49883fad1a18dd15e6251116ee42dfb16be2a826 (diff)
downloadatril-6f3a0a2f8faa37d5e9de5f4d794e9e9c1d693c85.tar.bz2
atril-6f3a0a2f8faa37d5e9de5f4d794e9e9c1d693c85.tar.xz
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. Backported from https://gitlab.gnome.org/GNOME/evince/-/commit/0a0a2d8c
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 6d3b2382..21addeae 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4690,7 +4690,7 @@ ev_window_update_max_min_scale (EvWindow *window)
action = gtk_action_group_get_action (window->priv->action_group,
ZOOM_CONTROL_ACTION);
G_GNUC_END_IGNORE_DEPRECATIONS;
- 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);