Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-view.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b96411..ee561c4 100644
--- 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):
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;