From 17cc4150d9051fa025a865e47b105590073a14bb Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sat, 28 Feb 2009 23:54:33 +0200 Subject: [PATCH] Remove previous tiles when changing source --- champlain/champlain-view.c | 5 +++++ 1 file changed, 5 insertions(+) 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 (); -- 2.39.5