summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gui/skin_engine/skin_parser.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 3717dadd48..ede1871414 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1120,13 +1120,10 @@ static int parse_albumart_display(const char *wps_bufptr,
struct wps_data *wps_data)
{
(void)wps_bufptr;
- if (wps_data->num_tokens > 1)
+ struct wps_token *prev = token-1;
+ if ((wps_data->num_tokens > 1) && (prev->type == WPS_TOKEN_CONDITIONAL))
{
- struct wps_token *prev = token-1;
- if (prev->type == WPS_TOKEN_CONDITIONAL)
- {
- token->type = WPS_TOKEN_ALBUMART_FOUND;
- }
+ token->type = WPS_TOKEN_ALBUMART_FOUND;
}
else if (wps_data->albumart)
{