From 8139ba9425da46085769d1bcb6c8f8a1f22647ed Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 19 May 2000 04:35:12 +0000 Subject: From a patch by Iain Holmes 2000-05-19 Christopher James Lahey From a patch by Iain Holmes * e-table-config.c, e-table.c: Fixed getting text content from a node in the case of a non string based content field in the xml library. svn path=/trunk/; revision=3133 --- widgets/table/e-table-config.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-table-config.c') diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index 16cf04eec7..5d078f8f86 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "e-util/e-util.h" #include "e-util/e-xml-utils.h" #include "e-util/e-canvas.h" @@ -46,7 +47,12 @@ get_fields (ETable *etable, xmlNode *xmlRoot) for (column = xmlColumns->childs; column; column = column->next){ ETableCol *ecol; - int col = atoi (column->childs->content); + char *content; + int col; + + content = xmlNodeListGetString (column->doc, column->childs, 1); + col = atoi (content); + xmlFree (content); ecol = e_table_header_get_column (etable->header, col); -- cgit v1.2.3