Currently selecting "Disabled" for the "Moving Map Method" results in
"Keep vehicle on screen" behaviour. Add missing check so that the
feature is actually disabled.

Signed-off-by: Sven Wegener <sven.wege...@stealer.net>
---
 src/vikgpslayer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/vikgpslayer.c b/src/vikgpslayer.c
index d06f5a3..80d65ac 100644
--- a/src/vikgpslayer.c
+++ b/src/vikgpslayer.c
@@ -1226,7 +1226,7 @@ static void gpsd_raw_hook(VglGpsd *vgpsd, gchar *data)
       vik_viewport_set_center_coord(vvp, &vehicle_coord);
       update_all = TRUE;
     }
-    else {
+    else if (vgl->vehicle_position == VEHICLE_POSITION_ON_SCREEN) {
       const int hdiv = 6;
       const int vdiv = 6;
       const int px = 20; /* adjust ment in pixels to make sure vehicle is 
inside the box */
-- 
1.6.6


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to