]> err.no Git - mapper/commitdiff
Missed one spot. Use full redraw.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 16:25:15 +0000 (18:25 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 16:25:15 +0000 (18:25 +0200)
src/poi-gui.c

index 5edcf13d60fdc5554d6acc305c40531d8474826a..944f37042a3b617a616a22333f0817c15d09bf9c 100644 (file)
@@ -909,7 +909,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
                        popup_error(_window, _("Problem updating POI"));
                } else {
                        map_poi_cache_clear();
-                       map_render_data();
+                       map_force_redraw();
                }
        } else {
                /* add poi */
@@ -918,7 +918,8 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
                if (poi_add(poi)==FALSE) {
                        popup_error(_window, _("Problem adding POI"));
                } else {
-                       map_render_data();
+                       map_poi_cache_clear();
+                       map_force_redraw();
                }
        }
        break;
@@ -956,7 +957,7 @@ if (poi_add(p)==FALSE) {
        popup_error(_window, _("Problem adding POI"));
 } else {
        map_poi_cache_clear();
-       map_render_data();
+       map_force_redraw();
        gtk_widget_destroy(qp.dialog);
 }