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 | b9dea53913a300a1c6bfb8e91afb0ddf2f2ade28 (patch) | |
tree | 9402fe03dc8d1c6c11f58efbfd1393a1bd181476 /navit/vehicle.c | |
parent | f00ee454d8a4b0c360b9c2bdb5975525f0637989 (diff) | |
download | navit-b9dea53913a300a1c6bfb8e91afb0ddf2f2ade28.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 31907b8ec..331042d9a 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; |