diff options
-rw-r--r-- | lib/skin_parser/skin_parser.c | 2 | ||||
-rw-r--r-- | tools/checkwps/checkwps.make | 2 |
2 files changed, 2 insertions, 2 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 | |||
958 | } | 958 | } |
959 | if (element->tag->flags&FEATURE_TAG) | 959 | if (element->tag->flags&FEATURE_TAG) |
960 | { | 960 | { |
961 | if (feature_available) | 961 | if (feature_available && children > 1) |
962 | children--; | 962 | children--; |
963 | } | 963 | } |
964 | conditional_end = cursor; | 964 | conditional_end = cursor; |
diff --git a/tools/checkwps/checkwps.make b/tools/checkwps/checkwps.make index 20da68dbe3..e021024901 100644 --- a/tools/checkwps/checkwps.make +++ b/tools/checkwps/checkwps.make | |||
@@ -22,7 +22,7 @@ INCLUDES = -I$(ROOTDIR)/apps/gui \ | |||
22 | -I$(BUILDDIR) | 22 | -I$(BUILDDIR) |
23 | 23 | ||
24 | # Makes mkdepfile happy | 24 | # Makes mkdepfile happy |
25 | GCCOPTS+=-D__PCTOOL__ -DCHECKWPS | 25 | GCCOPTS+=-D__PCTOOL__ -DCHECKWPS -g |
26 | 26 | ||
27 | .SECONDEXPANSION: # $$(OBJ) is not populated until after this | 27 | .SECONDEXPANSION: # $$(OBJ) is not populated until after this |
28 | 28 | ||