summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
authorRobotaxi <robotaxi@arcor.de>2015-08-13 21:40:59 +0200
committerRobotaxi <robotaxi@arcor.de>2015-08-13 21:40:59 +0200
commit20e32a0b714eef1bc260523c737f2d7bb2068ef2 (patch)
tree2a85d618c7111cd5a79f57f4194766519f9d929e /navit/navit.c
parent968d85114ed8326ede2f2f8af981c862c25b08af (diff)
downloadnavit-20e32a0b714eef1bc260523c737f2d7bb2068ef2.tar.gz
Concatenation of announcements now working
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/navit.c b/navit/navit.c
index 1fb36702c..5420a08cc 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -1889,8 +1889,10 @@ navit_speak(struct navit *this_)
if (mr) {
while ((item=map_rect_get_item(mr)) && (item->type == type_nav_position || item->type == type_nav_none));
if (item && item_attr_get(item, attr_navigation_speech, &attr)) {
- speech_say(this_->speech, attr.u.str);
- navit_add_message(this_, attr.u.str);
+ if (*attr.u.str != '\0') {
+ speech_say(this_->speech, attr.u.str);
+ navit_add_message(this_, attr.u.str);
+ }
navit_textfile_debug_log(this_, "type=announcement label=\"%s\"", attr.u.str);
}
map_rect_destroy(mr);