diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-07-13 20:37:21 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-07-13 20:37:21 +0000 |
commit | 9bf6351195580a917a8beaea8ae09b475733305b (patch) | |
tree | 348982a8ff4008983916195f9330f2eeb6cf6a4b /navit/vehicle.c | |
parent | 7c7753887db05491b0a5490c596eda4dfec88d36 (diff) | |
download | navit-9bf6351195580a917a8beaea8ae09b475733305b.tar.gz |
Fix:core:Integrate transform_setup into transform_new. Avoids two-step initialization and access to undefined variables in struct transform.|Part of fix for #1145.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5544 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r-- | navit/vehicle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c index a67779467..c28d5956c 100644 --- a/navit/vehicle.c +++ b/navit/vehicle.c @@ -126,11 +126,10 @@ vehicle_new(struct attr *parent, struct attr **attrs) } this_->attrs=attr_list_dup(attrs); - this_->trans=transform_new(); center.pro=projection_screen; center.x=0; center.y=0; - transform_setup(this_->trans, ¢er, 16, 0); + this_->trans=transform_new(¢er, 16, 0); vehicle_set_default_name(this_); dbg(1, "leave\n"); |