summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/skin_parser/skin_parser.c6
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)