From 0ffd0f07ed24fe71b88dc3cda30f944e4407fac0 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 22 May 2005 15:09:31 +0000 Subject: Fix minor points related to moving best fit up. Introduce "zoom" property and make zoom control change it's value on notify::zoom signals. Fix for 305080. --- (limited to 'cut-n-paste/zoom-control/ephy-zoom.c') diff --git a/cut-n-paste/zoom-control/ephy-zoom.c b/cut-n-paste/zoom-control/ephy-zoom.c index ee91784..34e25ec 100644 --- a/cut-n-paste/zoom-control/ephy-zoom.c +++ b/cut-n-paste/zoom-control/ephy-zoom.c @@ -59,7 +59,7 @@ ephy_zoom_get_changed_zoom_level (float level, gint steps) guint index; index = ephy_zoom_get_zoom_level_index (level); - return zoom_levels[CLAMP(index + steps, 0, n_zoom_levels - 1)].level; + return zoom_levels[CLAMP(index + steps, 3, n_zoom_levels - 1)].level; } float ephy_zoom_get_nearest_zoom_level (float level) -- cgit v0.9.1