From a4ca3d9070f1fe23eeb83706e0604a02c3ef83be Mon Sep 17 00:00:00 2001 From: tinloaf Date: Wed, 22 Oct 2008 18:12:15 +0000 Subject: [PATCH] Fix:Core:Enable navigation if destination is set after position. git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1531 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/navit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/navit/navit/navit.c b/navit/navit/navit.c index cc2121f..b5b87b0 100644 --- a/navit/navit/navit.c +++ b/navit/navit/navit.c @@ -771,8 +771,11 @@ navit_set_destination(struct navit *this_, struct pcoord *c, char *description) callback_list_call_attr_0(this_->attr_cbl, attr_destination); if (this_->route) { route_set_destination(this_->route, c); - if (this_->navigation) + if (this_->navigation) { navigation_flush(this_->navigation); + navigation_update(this_->navigation, this_->route); + } + navit_draw(this_); } } -- 2.7.4