diff options
-rw-r--r-- | apps/gui/wps_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
601 | if (*(ptr+1) == '|') | 601 | if (*(ptr+1) == '|') |
602 | { | 602 | { |
603 | char label = *(ptr+2); | 603 | char label = *(ptr+2); |
604 | if (label >= 'a' && label < 'a' + WPS_MAX_VIEWPORTS) | 604 | if (label >= 'a' && label <= 'z') |
605 | { | 605 | { |
606 | wps_data->viewports[wps_data->num_viewports].hidden_flags = VP_DRAW_HIDEABLE; | 606 | wps_data->viewports[wps_data->num_viewports].hidden_flags = VP_DRAW_HIDEABLE; |
607 | wps_data->viewports[wps_data->num_viewports].label = label; | 607 | wps_data->viewports[wps_data->num_viewports].label = label; |