From a382431523d6372881af66e3be0942903da79c73 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 14:45:16 +0200 Subject: [PATCH] Announce distance to destination only if _announce_destination==TRUE --- src/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map.c b/src/map.c index a39e8f0..a3e279d 100644 --- a/src/map.c +++ b/src/map.c @@ -1249,7 +1249,7 @@ if (_dest.valid) { announce_destination_reached(); dest_reached=TRUE; } else if (dt0) + if (_center_mode>0 && _announce_destination==TRUE) announce_distance_to_destination(cdist, UNITS_TEXT[_units], KM10KNOTS); prev_dt=dt; } else if (dt>prev_dt+KM10KNOTS/4) { @@ -1264,6 +1264,7 @@ if (_dest.valid) { prev_dt=99999.0; gtk_label_set_label(GTK_LABEL(info_banner.distance), ""); } + gtk_compass_set_dest_heading(_gps_compass, _dest.valid, (gfloat)dh); gtk_compass_set_dest_heading(_tab_compass, _dest.valid, (gfloat)dh); -- 2.39.5