diff options
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/appearance/mate-wp-xml.c | 5 |
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) { |