if (map)
mr=map_rect_new(map, NULL);
if (mr) {
- item=map_rect_get_item(mr);
+ while ((item=map_rect_get_item(mr)) && item->type == type_nav_position);
if (item && item_attr_get(item, attr_navigation_speech, &attr)) {
speech_say(this_->speech, attr.u.str);
navit_textfile_debug_log(this_, "item=point_debug debug=\"speech_say('%s')\"", attr.u.str);
speech_new(struct attr *parent, struct attr **attrs)
{
struct speech *this_;
- struct speech_priv *(*speech_new)(const char *data, struct speech_methods *meth);
+ struct speech_priv *(*speech_new)(struct speech_methods *meth, struct attr **attrs);
struct attr *type;
type=attr_search(attrs, NULL, attr_type);
return NULL;
}
this_=g_new0(struct speech, 1);
- this_->priv=speech_new(attrs, &this_->meth);
+ this_->priv=speech_new(&this_->meth, attrs);
dbg(1, "say=%p\n", this_->meth.say);
dbg(1,"priv=%p\n", this_->priv);
if (! this_->priv) {