X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmap-download.c;h=d1505403cd0e93684d2bd72a6eb7f8d120cda9be;hb=a434e8412bc14d3f7fd5a013a9e8a8b5f215df90;hp=2f07badd833e5fd337b7842cb895d1d7f78ffe22;hpb=4b8edd8e6b60783b13bad6d0497499f8c56bc7cc;p=mapper diff --git a/src/map-download.c b/src/map-download.c index 2f07bad..d150540 100644 --- a/src/map-download.c +++ b/src/map-download.c @@ -53,7 +53,6 @@ #include "ui-common.h" #include "settings.h" #include "latlon.h" -#include "gpx.h" #include "map-download.h" #include "iap.h" #include "map-repo.h" @@ -131,9 +130,9 @@ while (_curl_multi && (msg = curl_multi_info_read(_curl_multi, &num_msgs))) { if (msg->easy_handle == _autoroute_data.curl_easy) { /* This is the autoroute download. */ /* Now, parse the autoroute and update the display. */ - if (_autoroute_data.enabled && gpx_parse(&_route, _autoroute_data.rdl_data.bytes, _autoroute_data.rdl_data.bytes_read, 0)) { + if (_autoroute_data.enabled && path_gpx_parse(_route, _autoroute_data.rdl_data.bytes, _autoroute_data.rdl_data.bytes_read, 0)) { /* Find the nearest route point, if we're connected. */ - path_find_nearest_point(_route); + path_find_nearest_point(_route, _gps->data.lat, _gps->data.lon); } route_cancel_autoroute(_route, TRUE); /* We're done. Clean up. */ } else {