]> err.no Git - mapper/commitdiff
Callback needs gps
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 24 Jan 2008 16:24:15 +0000 (18:24 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 24 Jan 2008 16:24:15 +0000 (18:24 +0200)
src/map.c

index 194e5e6848ff652e1026dbb8d462cbf97ddd5ffa..32972a063ebf758b0f8d691a43b91056d8b46ec9 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -633,6 +633,7 @@ gtk_widget_queue_draw_area(_map_widget,
 gboolean
 map_update_location_from_gps(Gps *gps)
 {
+g_assert(gps);
 map_update_location(gps->data.lat, gps->data.lon, FALSE);
 return FALSE;
 }
@@ -722,7 +723,7 @@ if (_speed_on)
        map_speed_draw();
 
 if (_center_mode>0)
-       g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_gps, NULL, NULL);
+       g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_gps, _gps, NULL);
 }
 
 /**