From 42db57f5e7586d2494c9e1b018a7d75f335987a2 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 24 May 2012 16:58:18 +0200 Subject: [PATCH] Bugfix on decoded fields on GdaExQueryEditor::load_tables_from_xml. --- src/queryeditor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/queryeditor.c b/src/queryeditor.c index 586fc05..ebfa5ee 100644 --- a/src/queryeditor.c +++ b/src/queryeditor.c @@ -1246,23 +1246,23 @@ gdaex_query_editor_load_tables_from_xml (GdaExQueryEditor *qe, xdecode = cur->children; while (xdecode != NULL) { - if (xmlStrcmp (xdecode->name, "table_name")) + if (xmlStrcmp (xdecode->name, "table_name") == 0) { field->decode_table2 = xmlNodeGetContent (xdecode); } - else if (xmlStrcmp (xdecode->name, "join_type")) + else if (xmlStrcmp (xdecode->name, "join_type") == 0) { field->decode_join_type = gdaex_query_editor_str_to_join_type (xmlNodeGetContent (xdecode)); } - else if (xmlStrcmp (xdecode->name, "field_name_to_join")) + else if (xmlStrcmp (xdecode->name, "field_name_to_join") == 0) { field->decode_field2 = xmlNodeGetContent (xdecode); } - else if (xmlStrcmp (xdecode->name, "field_name_to_show")) + else if (xmlStrcmp (xdecode->name, "field_name_to_show") == 0) { field->decode_field_to_show = xmlNodeGetContent (xdecode); } - else if (xmlStrcmp (xdecode->name, "alias")) + else if (xmlStrcmp (xdecode->name, "alias") == 0) { field->decode_field_alias = xmlNodeGetContent (xdecode); } -- 2.49.0