summaryrefslogtreecommitdiff
path: root/cut-n-paste/zoom-control/ephy-zoom.c
diff options
context:
space:
mode:
Diffstat (limited to 'cut-n-paste/zoom-control/ephy-zoom.c')
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom.c b/cut-n-paste/zoom-control/ephy-zoom.c
index 83bb8291..bc456ecc 100644
--- a/cut-n-paste/zoom-control/ephy-zoom.c
+++ b/cut-n-paste/zoom-control/ephy-zoom.c
@@ -35,11 +35,13 @@ ephy_zoom_get_zoom_level_index (float level)
return 0;
} else if (level == EPHY_ZOOM_FIT_WIDTH) {
return 1;
+ } else if (level == EPHY_ZOOM_EXPAND_WINDOW_TO_FIT) {
+ return 2;
}
- previous = zoom_levels[3].level;
+ previous = zoom_levels[4].level;
- for (i = 4; i < n_zoom_levels; i++)
+ for (i = 5; i < n_zoom_levels; i++)
{
current = zoom_levels[i].level;
mean = sqrt (previous * current);