Fix:Core:Enable getting name attribute from layout
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 5 Jun 2012 18:59:33 +0000 (18:59 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 5 Jun 2012 18:59:33 +0000 (18:59 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5133 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/layout.c

index e470b88..1115811 100644 (file)
@@ -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) {