diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-05 18:59:33 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-05 18:59:33 +0000 |
commit | b2688930670277e5e0398276deca01dd48b38412 (patch) | |
tree | 1ec9c5a4bd69b94cf65ad941fc4aa8248661774e /navit/layout.c | |
parent | 6fa26e762608746dbd03d9d7f9d6aa44f99ed25b (diff) | |
download | navit-b2688930670277e5e0398276deca01dd48b38412.tar.gz |
Fix:Core:Enable getting name attribute from layout
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5133 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.c')
-rw-r--r-- | navit/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/layout.c b/navit/layout.c index e470b8822..111581155 100644 --- a/navit/layout.c +++ b/navit/layout.c @@ -79,6 +79,9 @@ layout_get_attr(struct layout *layout, enum attr_type type, struct attr *attr, s GList *cursor,*layer; attr->type=type; switch (type) { + case attr_name: + attr->u.str=layout->name; + return 1; case attr_cursor: cursor=layout->cursors; while (cursor) { |