diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-05 13:02:34 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-05 13:02:34 +0000 |
commit | d402abe3f8b2148aa23c1e5bb4d25991984a0798 (patch) | |
tree | 9cfddcbcf763d54aefc0782d179e83ce245eb980 /lib/skin_parser/skin_parser.c | |
parent | 775fbaf780468d0a162f45bad38b0a9fd580cd3c (diff) |
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
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r-- | lib/skin_parser/skin_parser.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index b3bc9856b9..64ac462c2c 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c @@ -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) |