summaryrefslogtreecommitdiff
path: root/navit/data/garmin/gar2navit.c
diff options
context:
space:
mode:
authorzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-10 21:19:42 +0000
committerzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-10 21:19:42 +0000
commit1a6398e9ec4eeaf0f521e017f6f24eae2585aae8 (patch)
tree74e33cd04245c228866f1656dc9ce95ad0c4a86b /navit/data/garmin/gar2navit.c
parent3419e90421993f98c4968d48fdfbc141d6963f45 (diff)
downloadnavit-1a6398e9ec4eeaf0f521e017f6f24eae2585aae8.tar.gz
Add:garmin:Get object group for type conversion and add option flags
in config to set the debugmask which will be used to enable experimental code. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1452 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/data/garmin/gar2navit.c')
-rw-r--r--navit/data/garmin/gar2navit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/data/garmin/gar2navit.c b/navit/data/garmin/gar2navit.c
index aa7d93c20..7c4450401 100644
--- a/navit/data/garmin/gar2navit.c
+++ b/navit/data/garmin/gar2navit.c
@@ -156,6 +156,8 @@ enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned
{
struct gar2navit *def = NULL;
int group;
+ group = (type >> G2N_KIND_SHIFT);
+ type &= ~G2N_KIND_MASK;
if (type == G2N_POINT)
def = c->points;
else if (type == G2N_POLYLINE)
@@ -172,7 +174,6 @@ enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned
return type_none;
}
- group = (type >> G2N_KIND_SHIFT);
while (def) {
if (def->group == group &&
((!def->maxid && def->id == id) ||