diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-27 11:22:07 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-27 11:22:07 +0000 |
commit | 8f817cc8d5e070de14c9e7026e9affac6bea5a17 (patch) | |
tree | d27986e7f5b438d5ade51c93d3bf1618fea6ec16 | |
parent | f88bc05f29ba1afe63588198c513a2058dbdbfeb (diff) | |
download | navit-8f817cc8d5e070de14c9e7026e9affac6bea5a17.tar.gz |
Fix:Core:Recalculate path when vehicleprofile changes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2414 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/route.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/navit/route.c b/navit/route.c index 8c5a31e4c..67c21cfd2 100644 --- a/navit/route.c +++ b/navit/route.c @@ -496,7 +496,12 @@ route_set_mapset(struct route *this, struct mapset *ms) void route_set_profile(struct route *this, struct vehicleprofile *prof) { - this->vehicleprofile=prof; + if (this->vehicleprofile != prof) { + this->vehicleprofile=prof; + route_path_destroy(this->path2); + this->path2 = NULL; + route_path_update(this, 0, 0); + } } /** |