Fix:osd/core:use only csv maps in speedcam osd for performance reasons, usage of...
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 16 Feb 2011 06:40:50 +0000 (06:40 +0000)
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 16 Feb 2011 06:40:50 +0000 (06:40 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4178 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/osd/core/osd_core.c

index 6327129..ed6e934 100644 (file)
@@ -1411,6 +1411,15 @@ osd_speed_cam_draw(struct osd_speed_cam *this_, struct navit *navit, struct vehi
   
   msh=mapset_open(ms);
   while ((map=mapset_next(msh, 1))) {
+    struct attr attr;
+    if(map_get_attr(map, attr_map_release, &attr, NULL)) {
+      if(strncmp("csv", attr.u.str, 3)) {
+        continue;
+      }
+    }
+    else {
+      continue;
+    }
     mr=map_rect_new(map, &sel);
     if (!mr)
       continue;