Core:Fix:Don't make the color attribute of layouts mandatory.
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 10 Feb 2008 21:03:48 +0000 (21:03 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 10 Feb 2008 21:03:48 +0000 (21:03 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@857 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/xmlconfig.c

index f3e7688..2867c50 100644 (file)
@@ -441,7 +441,7 @@ xmlconfig_layout(struct xmlstate *state)
 
        if (! name)
                return 0;
-       find_color(state, 1, &color);
+       find_color(state, 0, &color);
        state->element_object = layout_new(name, &color);
        if (! state->element_object)
                return 0;