From: Pierre-Luc Beaudoin Date: Sat, 28 Feb 2009 21:54:33 +0000 (+0200) Subject: Remove previous tiles when changing source X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cc4150d9051fa025a865e47b105590073a14bb;p=libchamplain Remove previous tiles when changing source --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 26b5d2d..b97d5b5 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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 ();