]> err.no Git - mapper/blobdiff - src/cb.c
Path: misc adjustments
[mapper] / src / cb.c
index e7274b0ebfc5b2d29198548f66b4c6443cc92fae..36406cbc0b2d187c7e993db419b406649901cea1 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
@@ -123,8 +123,7 @@ return TRUE;
 gboolean 
 menu_cb_route_reset(GtkAction *action)
 {
-path_find_nearest_point(_route);
-gtk_map_refresh(_map);
+path_find_nearest_point(_route, _gps->data.lat, _gps->data.lon);
 return TRUE;
 }
 
@@ -1170,8 +1169,9 @@ if ((way = path_find_nearest_waypoint(_route, lat, lon))) {
                        way[-1].point -= num_del;
                }
                _route->wtail--;
-
+#if 0
                path_find_nearest_point(_route);
+#endif
        }
        gtk_widget_destroy(confirm);
 }