]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix SF#3009431: Prevent Crash in Real Time Tracking GPS Mode & Autodownload Maps.
authorRob Norris <rw_norris@hotmail.com>
Fri, 8 Oct 2010 18:54:02 +0000 (19:54 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Fri, 8 Oct 2010 20:24:05 +0000 (22:24 +0200)
Protect the GPS layer initiated map drawing update in the same way as the Map layer background download maps draw update works.

src/vikgpslayer.c

index ac0146b39b4ad5bea26f7823044b61ab784103ea..582f08bae7863b426c426ea12538632b6c4e1a82 100644 (file)
@@ -1311,7 +1311,9 @@ static void gpsd_raw_hook(VglGpsd *vgpsd, gchar *data)
     vgl->first_realtime_trackpoint = FALSE;
     create_realtime_trackpoint(vgl, FALSE);
 
+    gdk_threads_enter();
     vik_layer_emit_update ( update_all ? VIK_LAYER(vgl) : VIK_LAYER(vgl->trw_children[TRW_REALTIME]));
+    gdk_threads_leave();
   }
 }