Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-12-16 19:34:10 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-12-16 19:34:10 (GMT)
commit012d467f71a44b916e060de7329629c252e4fc01 (patch)
tree41873b3b28d8cf6ce3bb0d2d4e96625107b846da /shell
parenta73a364ed185d1d933bd032debd1e37d31a1426b (diff)
Do not limit the minimum zoom factor when sizing mode is best bit or fit
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index a6007c9..bbfeecf 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;