]> err.no Git - mapper/commitdiff
track_add likes gps data, not gps
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 24 Jan 2008 16:46:24 +0000 (18:46 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 24 Jan 2008 16:46:24 +0000 (18:46 +0200)
src/gps-nmea-parse.c

index 2971ee2e782714159090410d068f2c1e85de5e7d..dee16731c73215f5a4cdc85e1d58a76fe15957d2 100644 (file)
@@ -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();
        }