summaryrefslogtreecommitdiff
path: root/navit/vehicleprofile.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-27 20:07:09 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-27 20:07:09 +0000
commit096e8e2fb89fd1aed5729509c5c7e032d611fa18 (patch)
treeb1e37ee84777a6ea19b09749c1b474ca97fc3955 /navit/vehicleprofile.c
parentdb3ed81cce4414cf769d88c8742a9afbaf35d511 (diff)
downloadnavit-svn-096e8e2fb89fd1aed5729509c5c7e032d611fa18.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
Diffstat (limited to 'navit/vehicleprofile.c')
-rw-r--r--navit/vehicleprofile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/navit/vehicleprofile.c b/navit/vehicleprofile.c
index d5a4d1a3..34437668 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,