diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-22 15:24:30 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-22 15:24:30 +0000 |
commit | 22b31f438dccabbacd708c3f7589ae4e4cedf0e2 (patch) | |
tree | a9c1f89e8d2fbc811b602b4d98594e5107283375 | |
parent | fd57a1f07e7db7f6d887686e6b1fc8e29b3c28fd (diff) | |
download | navit-22b31f438dccabbacd708c3f7589ae4e4cedf0e2.tar.gz |
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
-rw-r--r-- | navit/navit/speech.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; } /** |