diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-07-27 20:07:09 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-07-27 20:07:09 +0000 |
commit | 11907ecb43cc576f0619731594c7f27a8a9f6810 (patch) | |
tree | b1e37ee84777a6ea19b09749c1b474ca97fc3955 | |
parent | c833d5f813ec177c81b3ddbfd7df94ba5ccbea07 (diff) | |
download | navit-11907ecb43cc576f0619731594c7f27a8a9f6810.tar.gz |
Fix:Core:Correctly initialize profile_options if enabled from xml
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5550 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/vehicleprofile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/navit/vehicleprofile.c b/navit/vehicleprofile.c index d5a4d1a30..344376681 100644 --- a/navit/vehicleprofile.c +++ b/navit/vehicleprofile.c @@ -295,6 +295,12 @@ vehicleprofile_get_name(struct vehicleprofile *this_) return this_->name; } +void +vehicleprofile_init(struct vehicleprofile *this_) +{ + vehicleprofile_update(this_); +} + struct object_func vehicleprofile_func = { attr_vehicleprofile, (object_func_new)vehicleprofile_new, @@ -304,7 +310,7 @@ struct object_func vehicleprofile_func = { (object_func_set_attr)vehicleprofile_set_attr, (object_func_add_attr)vehicleprofile_add_attr, (object_func_remove_attr)vehicleprofile_remove_attr, - (object_func_init)NULL, + (object_func_init)vehicleprofile_init, (object_func_destroy)NULL, (object_func_dup)NULL, (object_func_ref)navit_object_ref, |