From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 16:46:24 +0000 (+0200) Subject: track_add likes gps data, not gps X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=579b0b1b52b4c1dd165ac92ec362dccfa178a46b;p=mapper track_add likes gps data, not gps --- diff --git a/src/gps-nmea-parse.c b/src/gps-nmea-parse.c index 2971ee2..dee1673 100644 --- a/src/gps-nmea-parse.c +++ b/src/gps-nmea-parse.c @@ -165,7 +165,7 @@ gps_nmea_parse_rmc(Gps *gps, gchar * sentence) gps_display_data_speed(info_banner.speed, gps->data.speed); if ((gps->io.conn==RCVR_FIXED) && (_track_store==TRUE) && filter_check(&filter, &gps->data, &map_loc)==TRUE) { - track_add(_gps, newly_fixed); + track_add(&_gps->data, newly_fixed); gps->data.lheading=gps->data.heading; map_refresh_mark(); }