summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-13 10:56:14 +0100
committerraveit65 <[email protected]>2021-03-11 16:45:36 +0100
commita88434f14071b17d84c43482cf6f528b55aacd66 (patch)
tree4bb1265a5c895e123187cfeef17839d2088139fe /capplets
parent1fc3baed456288c5423eba3a2f1852a9edd9ac36 (diff)
downloadmate-control-center-a88434f14071b17d84c43482cf6f528b55aacd66.tar.bz2
mate-control-center-a88434f14071b17d84c43482cf6f528b55aacd66.tar.xz
i18n: fix an error that prevents showing the wallpaper name
Diffstat (limited to 'capplets')
-rw-r--r--capplets/appearance/mate-wp-xml.c5
1 files 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)
{