libskin_parser: fix a annoying bug where viewports required at least one line (even %Vi()). multiple %Vi lines direclty under eachother should now work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28210 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
775fbaf780
commit
d402abe3f8
|
@ -159,6 +159,12 @@ static struct skin_element* skin_parse_viewport(const char** document)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (check_viewport(cursor))
|
||||
{
|
||||
retval->children_count = 0;
|
||||
*document = cursor;
|
||||
return retval;
|
||||
}
|
||||
retval->children_count = 1;
|
||||
retval->children = skin_alloc_children(1);
|
||||
if (!retval->children)
|
||||
|
|
Loading…
Reference in New Issue
Block a user