Fix:Core:Enable navigation if destination is set after position.
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 22 Oct 2008 18:12:15 +0000 (18:12 +0000)
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 22 Oct 2008 18:12:15 +0000 (18:12 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1531 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index cc2121f..b5b87b0 100644 (file)
@@ -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_);
        }
 }