summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-11-03 11:08:55 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-11-03 11:08:55 +0000
commitf6cf295dd3c79eb26842c54e22007ded8e226023 (patch)
treea7b8a69a01271d04c235d402173d35da067fcbb2 /lib/skin_parser/skin_parser.c
parent934b4d4f61a097a9ab227fba5c984d209822c4f9 (diff)
Fix a bug introduced with r28370 (feature check tag improvements) where %Rp<foo> would fail to parse if the target had recording. Also enable debugging in the checkwps build line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28473 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r--lib/skin_parser/skin_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c
index f574d3f7a2..689a315bfa 100644
--- a/lib/skin_parser/skin_parser.c
+++ b/lib/skin_parser/skin_parser.c
@@ -958,7 +958,7 @@ static int skin_parse_conditional(struct skin_element* element, const char** doc
}
if (element->tag->flags&FEATURE_TAG)
{
- if (feature_available)
+ if (feature_available && children > 1)
children--;
}
conditional_end = cursor;