]> err.no Git - libchamplain/commitdiff
Remove previous tiles when changing source
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 28 Feb 2009 21:54:33 +0000 (23:54 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 4 Mar 2009 21:05:37 +0000 (23:05 +0200)
champlain/champlain-view.c

index 26b5d2d4a6bca25a54e45a2550085a65dd2bcbbf..b97d5b50d43131ea095c552a5131203f30526ab7 100644 (file)
@@ -530,6 +530,11 @@ champlain_view_set_property (GObject *object,
             if (priv->map)
               {
                 ClutterActor *group;
+
+                group = champlain_zoom_level_get_actor (priv->map->current_level);
+                clutter_container_remove_actor (CLUTTER_CONTAINER (priv->map_layer),
+                    group);
+
                 map_free (priv->map);
                 priv->map = map_new ();