]> www.fi.muni.cz Git - evince.git/commitdiff
Do not limit the minimum zoom factor when sizing mode is best bit or fit
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 16 Dec 2007 19:34:10 +0000 (19:34 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 16 Dec 2007 19:34:10 +0000 (19:34 +0000)
2007-12-16  Carlos Garcia Campos  <carlosgc@gnome.org>
* 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
shell/ev-view.c

index 4b96411ecf40cecf2b8d501303fef9329a31517f..ee561c492186dec0faba97b4eb6a61e0b351d99a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-16  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc: (ev_link_dest_from_dest):
index a6007c911897f83665166ce0f5c98cc3b1b9f70f..bbfeecfa64d2b4acb153f331b32813a44120a07a 100644 (file)
@@ -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;