summaryrefslogtreecommitdiff
path: root/navit/attr.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-11-24 14:49:34 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-11-24 14:49:34 +0000
commitd9386bd9a90de97177218437be6bbd559b4cc846 (patch)
tree1ee10793830983192318846d20840b48618e0ef7 /navit/attr.c
parent2568f29deeb7b14d731ea07b962e3acd77b6e123 (diff)
downloadnavit-d9386bd9a90de97177218437be6bbd559b4cc846.tar.gz
Add:new attribute alt_item_type
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3718 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r--navit/attr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/attr.c b/navit/attr.c
index 10c59e51d..6e5961c38 100644
--- a/navit/attr.c
+++ b/navit/attr.c
@@ -506,6 +506,8 @@ attr_data_size(struct attr *attr)
while (attr->u.item_types[i++] != type_none);
return i*sizeof(enum item_type);
}
+ if (attr->type >= attr_type_item_type_begin && attr->type <= attr_type_item_type_end)
+ return sizeof(enum item_type);
if (attr->type == attr_attr_types) {
int i=0;
while (attr->u.attr_types[i++] != attr_none);