X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcb.c;h=36406cbc0b2d187c7e993db419b406649901cea1;hb=a434e8412bc14d3f7fd5a013a9e8a8b5f215df90;hp=e7274b0ebfc5b2d29198548f66b4c6443cc92fae;hpb=6a180adb2e9a0e58ded90e6d4e9226051254be23;p=mapper diff --git a/src/cb.c b/src/cb.c index e7274b0..36406cb 100644 --- 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); }