]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/zoom-control/ephy-zoom.c
[libview] Fix a crash when loading document with inverted colors enabled
[evince.git] / cut-n-paste / zoom-control / ephy-zoom.c
index ee91784622a8ef886d00700762d1a1bcd651fdd6..83bb829131723456f4494bc7b7a786fe45c25f56 100644 (file)
@@ -13,7 +13,7 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  *  $Id$
  */
@@ -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)