From 22b31f438dccabbacd708c3f7589ae4e4cedf0e2 Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 22 May 2013 15:24:30 +0000 Subject: Fix:Core:Return reasonable default value for speech active git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5498 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/speech.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/navit/navit/speech.c b/navit/navit/speech.c index e4bd73fd6..712338f6a 100644 --- a/navit/navit/speech.c +++ b/navit/navit/speech.c @@ -93,7 +93,13 @@ speech_say(struct speech *this_, const char *text) int speech_get_attr(struct speech *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter) { - return attr_generic_get_attr(this_->attrs, NULL, type, attr, iter); + int ret=attr_generic_get_attr(this_->attrs, NULL, type, attr, iter); + if (!ret && type == attr_active) { + attr->u.num=1; + attr->type=type; + ret=1; + } + return ret; } /** -- cgit v1.2.1