diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-02 06:52:17 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-02 06:52:17 +0000 |
commit | ea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf (patch) | |
tree | d2623300a5866742a05ceee4a5675959f580c812 /utils/themeeditor/skin_parser.c | |
parent | e25c903bfecd78aac3a8f01aa8e75dc39e42df34 (diff) | |
download | rockbox-ea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf.tar.gz rockbox-ea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf.zip |
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
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
-rw-r--r-- | utils/themeeditor/skin_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
481 | element->params[i].type_code = *tag_args; | 481 | element->params[i].type_code = *tag_args; |
482 | 482 | ||
483 | /* Checking a nullable argument for null */ | 483 | /* Checking a nullable argument for null */ |
484 | if(*cursor == DEFAULTSYM) | 484 | if(*cursor == DEFAULTSYM && !isdigit(cursor[1])) |
485 | { | 485 | { |
486 | if(islower(*tag_args)) | 486 | if(islower(*tag_args)) |
487 | { | 487 | { |
@@ -497,7 +497,7 @@ int skin_parse_tag(struct skin_element* element, char** document) | |||
497 | else if(tolower(*tag_args) == 'i') | 497 | else if(tolower(*tag_args) == 'i') |
498 | { | 498 | { |
499 | /* Scanning an int argument */ | 499 | /* Scanning an int argument */ |
500 | if(!isdigit(*cursor)) | 500 | if(!isdigit(*cursor) && *cursor != '-') |
501 | { | 501 | { |
502 | skin_error(INT_EXPECTED); | 502 | skin_error(INT_EXPECTED); |
503 | return 0; | 503 | return 0; |