From 012d467f71a44b916e060de7329629c252e4fc01 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 16 Dec 2007 19:34:10 +0000 Subject: [PATCH] Do not limit the minimum zoom factor when sizing mode is best bit or fit 2007-12-16 Carlos Garcia Campos * shell/ev-view.c: (ev_view_set_zoom): Do not limit the minimum zoom factor when sizing mode is best bit or fit width. Fixes bug #503805. svn path=/trunk/; revision=2770 --- ChangeLog | 7 +++++++ shell/ev-view.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4b96411e..ee561c49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-12-16 Carlos Garcia Campos + + * shell/ev-view.c: (ev_view_set_zoom): + + Do not limit the minimum zoom factor when sizing mode is best bit + or fit width. Fixes bug #503805. + 2007-12-14 Carlos Garcia Campos * backend/pdf/ev-poppler.cc: (ev_link_dest_from_dest): diff --git a/shell/ev-view.c b/shell/ev-view.c index a6007c91..bbfeecfa 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -4276,7 +4276,9 @@ ev_view_set_zoom (EvView *view, else scale = factor; - scale = CLAMP (scale, view->min_scale, view->max_scale); + scale = CLAMP (scale, + view->sizing_mode == EV_SIZING_FREE ? view->min_scale : 0, + view->max_scale); if (ABS (view->scale - scale) < EPSILON) return; -- 2.43.5