diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-08-22 15:50:04 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-08-22 15:50:04 +0000 |
commit | 82916cb29216d7e83701aac2187b5a2d6890ed2e (patch) | |
tree | 9402fe03dc8d1c6c11f58efbfd1393a1bd181476 /navit/vehicle.c | |
parent | b0c5e3a9937b1b90710ed1c4effb38893649323c (diff) | |
download | navit-svn-82916cb29216d7e83701aac2187b5a2d6890ed2e.tar.gz |
Fix:core:Allow all kinds of vehicles to have profilename attribute. That's needed to control routing engine.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5215 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r-- | navit/vehicle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c index 31907b8e..331042d9 100644 --- a/navit/vehicle.c +++ b/navit/vehicle.c @@ -247,6 +247,10 @@ vehicle_set_attr(struct vehicle *this_, struct attr *attr) int ret=1; if (this_->meth.set_attr) ret=this_->meth.set_attr(this_->priv, attr); + /* attr_profilename probably is never used by vehicle itself but it's used to control the + routing engine. So any vehicle should allow to set and read it. */ + if(attr->type == attr_profilename) + ret=1; if (ret == 1 && attr->type == attr_log_gpx_desc) { g_free(this_->gpx_desc); this_->gpx_desc = attr->u.str; |