]> err.no Git - mapper/blobdiff - src/map-repo.c
Get rid of _pos, move data to gpsdata struct.
[mapper] / src / map-repo.c
index 81644521bf0857e8a47c6b3cfe9cd22f6800040a..9ba59e6096b47f4c701287261a3d2534b15b8fcc 100644 (file)
@@ -1171,9 +1171,9 @@ gboolean menu_cb_mapman(GtkAction * action)
        /* Initialize fields.  Do no use g_ascii_formatd; these strings will be
         * output (and parsed) as locale-dependent. */
 
-       g_snprintf(buffer, sizeof(buffer), "%.06f", _gps.lat);
+       g_snprintf(buffer, sizeof(buffer), "%.06f", _gps->lat);
        gtk_label_set_text(GTK_LABEL(lbl_gps_lat), buffer);
-       g_snprintf(buffer, sizeof(buffer), "%.06f", _gps.lon);
+       g_snprintf(buffer, sizeof(buffer), "%.06f", _gps->lon);
        gtk_label_set_text(GTK_LABEL(lbl_gps_lon), buffer);
 
        unit2latlon(_center.unitx, _center.unity, lat, lon);