]> err.no Git - libchamplain/commitdiff
Fix Bug 575138: It is possible to zoom below zoom level 0
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 16 Mar 2009 17:27:59 +0000 (19:27 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 16 Mar 2009 17:27:59 +0000 (19:27 +0200)
champlain/champlain-map.c

index 7cdf28defb0b6d00041f959d39af3774fba29b83..242f963d1c88665d9ec38d8305acbbb3e812bc27 100644 (file)
@@ -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);