From: Carlos Garcia Campos Date: Sun, 16 Dec 2007 19:34:10 +0000 (+0000) Subject: Do not limit the minimum zoom factor when sizing mode is best bit or fit X-Git-Tag: EVINCE_2_21_90~99 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=012d467f71a44b916e060de7329629c252e4fc01;p=evince.git 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 --- 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;