From d8e56e30d70b56f03e627292f70d568233874f20 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 25 Jun 2008 08:08:39 +0000 Subject: allow the full lowercase a-z to be used as conditional viewport grouping id's git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17789 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 805379152f..67411ed076 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -601,7 +601,7 @@ static int parse_viewport(const char *wps_bufptr, if (*(ptr+1) == '|') { char label = *(ptr+2); - if (label >= 'a' && label < 'a' + WPS_MAX_VIEWPORTS) + if (label >= 'a' && label <= 'z') { wps_data->viewports[wps_data->num_viewports].hidden_flags = VP_DRAW_HIDEABLE; wps_data->viewports[wps_data->num_viewports].label = label; -- cgit v1.2.3