From ea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Wed, 2 Jun 2010 06:52:17 +0000 Subject: Fixed another code generation bug with viewports and enabled negative numbers in tag parameters git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26465 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/skin_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/skin_parser.c') diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index 347d675b55..deb3a21ab2 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c @@ -481,7 +481,7 @@ int skin_parse_tag(struct skin_element* element, char** document) element->params[i].type_code = *tag_args; /* Checking a nullable argument for null */ - if(*cursor == DEFAULTSYM) + if(*cursor == DEFAULTSYM && !isdigit(cursor[1])) { if(islower(*tag_args)) { @@ -497,7 +497,7 @@ int skin_parse_tag(struct skin_element* element, char** document) else if(tolower(*tag_args) == 'i') { /* Scanning an int argument */ - if(!isdigit(*cursor)) + if(!isdigit(*cursor) && *cursor != '-') { skin_error(INT_EXPECTED); return 0; -- cgit v1.2.3