From d402abe3f8b2148aa23c1e5bb4d25991984a0798 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 5 Oct 2010 13:02:34 +0000 Subject: 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 --- lib/skin_parser/skin_parser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/skin_parser/skin_parser.c') 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) -- cgit v1.2.3