From a88434f14071b17d84c43482cf6f528b55aacd66 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 13 Feb 2021 10:56:14 +0100 Subject: i18n: fix an error that prevents showing the wallpaper name --- capplets/appearance/mate-wp-xml.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/capplets/appearance/mate-wp-xml.c b/capplets/appearance/mate-wp-xml.c index 7401a9ad..db2758bf 100644 --- a/capplets/appearance/mate-wp-xml.c +++ b/capplets/appearance/mate-wp-xml.c @@ -159,11 +159,12 @@ static void mate_wp_xml_load_xml(AppearanceData* data, const char* filename) for (wpa = list->children; wpa != NULL; wpa = wpa->next) { - if (wpa->type == XML_COMMENT_NODE) + if (wpa->type != XML_ELEMENT_NODE) { continue; } - else if (!strcmp ((char*) wpa->name, "filename")) + + if (!strcmp ((char*) wpa->name, "filename")) { if (wpa->last != NULL && wpa->last->content != NULL) { -- cgit v1.2.1