diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-03-11 22:07:25 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-03-11 22:07:25 +0000 |
commit | ce6773e3f270da67e7fbc44ff4f8da101f282f7c (patch) | |
tree | 38eca646886250be94d5e703236bb263b7fc3773 /navit/vehicleprofile.c | |
parent | d366fa5a32d9ab1883d846c8d207b91a0f085601 (diff) | |
download | navit-ce6773e3f270da67e7fbc44ff4f8da101f282f7c.tar.gz |
Fix:Core:Consider route_depth of profile options
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5412 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.c')
-rw-r--r-- | navit/vehicleprofile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/navit/vehicleprofile.c b/navit/vehicleprofile.c index b7cc4b053..d5a4d1a30 100644 --- a/navit/vehicleprofile.c +++ b/navit/vehicleprofile.c @@ -53,6 +53,11 @@ vehicleprofile_set_attr_do(struct vehicleprofile *this_, struct attr *attr) /* previously used strdupn not available on win32 */ this_->name = g_strdup(attr->u.str); break; + case attr_route_depth: + if(this_->route_depth) + g_free(this_->route_depth); + this_->route_depth = g_strdup(attr->u.str); + break; case attr_vehicle_axle_weight: this_->axle_weight=attr->u.num; break; @@ -113,6 +118,8 @@ vehicleprofile_clear(struct vehicleprofile *this_) this_->static_distance=0; g_free(this_->name); this_->name=NULL; + g_free(this_->route_depth); + this_->route_depth=NULL; this_->dangerous_goods=0; this_->length=-1; this_->width=-1; |