summaryrefslogtreecommitdiff
path: root/navit/speech.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-22 15:24:30 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-22 15:24:30 +0000
commitca4c71bfd3ad2a9a8cd589cb702dae7bea30b4b1 (patch)
tree5ff97d899b5573256e40031442da4696dca5e3f0 /navit/speech.c
parent6e21ac93a77f268d4e839ad8b0c872136cf9c7ea (diff)
downloadnavit-ca4c71bfd3ad2a9a8cd589cb702dae7bea30b4b1.tar.gz
Fix:Core:Return reasonable default value for speech active
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5498 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/speech.c')
-rw-r--r--navit/speech.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/navit/speech.c b/navit/speech.c
index e4bd73fd6..712338f6a 100644
--- a/navit/speech.c
+++ b/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;
}
/**