summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-07-27 13:07:43 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-07-27 13:07:43 +0000
commit965ecbdb88f2501de17e68fbd3de45a2fac07ffa (patch)
treece221be10a4d39e29d25bd581143ba18d68e6bba
parent4956655e5dd4e639214a2ce3185e8f9bf95941b1 (diff)
downloadnavit-svn-965ecbdb88f2501de17e68fbd3de45a2fac07ffa.tar.gz
Fix:Core:Fixed recalculation with profile change
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@2416 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--route.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/route.c b/route.c
index 67c21cfd..e0dc43aa 100644
--- a/route.c
+++ b/route.c
@@ -498,9 +498,7 @@ route_set_profile(struct route *this, struct vehicleprofile *prof)
{
if (this->vehicleprofile != prof) {
this->vehicleprofile=prof;
- route_path_destroy(this->path2);
- this->path2 = NULL;
- route_path_update(this, 0, 0);
+ route_path_update(this, 1, 1);
}
}