summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gui/wps_parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index fe601c8855..7aa604ecdc 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -610,7 +610,7 @@ static int parse_viewport(const char *wps_bufptr,
}
}
else
-#else
+#endif
{
if ((vp->x >= LCD_WIDTH) ||
((vp->x + vp->width) > LCD_WIDTH) ||
@@ -620,7 +620,6 @@ static int parse_viewport(const char *wps_bufptr,
return WPS_ERROR_INVALID_PARAM;
}
}
-#endif
wps_data->viewports[wps_data->num_viewports-1].last_line = wps_data->num_lines - 1;