diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-25 14:23:51 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-25 14:23:51 +0000 |
commit | 4bebe934b616724564292461072b35303dcd3176 (patch) | |
tree | 979c21ea5580daf6db72c97f96134d0d4a873fe4 | |
parent | 2622c45a21d2ed360099fab8520671a9fa360753 (diff) | |
download | navit-4bebe934b616724564292461072b35303dcd3176.tar.gz |
Fix:Core:Provide reasonable active default value
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5322 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/navit/map.c b/navit/map.c index 73093e3d2..900e3da49 100644 --- a/navit/map.c +++ b/navit/map.c @@ -145,6 +145,11 @@ map_get_attr(struct map *this_, enum attr_type type, struct attr *attr, struct a ret=this_->meth.map_get_attr(this_->priv, type, attr); if (!ret) ret=attr_generic_get_attr(this_->attrs, NULL, type, attr, iter); + if (!ret && type == attr_active) { + attr->type=type; + attr->u.num=1; + return 1; + } return ret; } |