From: Pierre-Luc Beaudoin Date: Mon, 16 Mar 2009 17:27:59 +0000 (+0200) Subject: Fix Bug 575138: It is possible to zoom below zoom level 0 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff82b113d88ffe2ebe63ae6799fb40f9ec8ebbac;p=libchamplain Fix Bug 575138: It is possible to zoom below zoom level 0 --- diff --git a/champlain/champlain-map.c b/champlain/champlain-map.c index 7cdf28d..242f963 100644 --- a/champlain/champlain-map.c +++ b/champlain/champlain-map.c @@ -138,7 +138,7 @@ map_zoom_in (Map *map, ChamplainMapSource *source) gboolean map_zoom_out (Map *map, ChamplainMapSource *source) { - guint new_level = champlain_zoom_level_get_zoom_level (map->current_level) - 1; + gint new_level = champlain_zoom_level_get_zoom_level (map->current_level) - 1; if(new_level >= champlain_map_source_get_min_zoom_level (source)) { map_load_level(map, source, new_level);