diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-19 12:35:12 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-19 12:35:12 +0800 |
commit | 8139ba9425da46085769d1bcb6c8f8a1f22647ed (patch) | |
tree | 3d43323c1b50e1b1226b95314e54446d53c788f1 /widgets/table/e-table.c | |
parent | 5b7e64a40ab6670c44f9e492290261fe644c06f4 (diff) | |
download | gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar.gz gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar.bz2 gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar.lz gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar.xz gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.tar.zst gsoc2013-evolution-8139ba9425da46085769d1bcb6c8f8a1f22647ed.zip |
From a patch by Iain Holmes <ih@csd.abdn.ac.uk>
2000-05-19 Christopher James Lahey <clahey@helixcode.com>
From a patch by Iain Holmes <ih@csd.abdn.ac.uk>
* 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
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r-- | widgets/table/e-table.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index ae900f084f..5e83d9fce9 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -19,6 +19,7 @@ #include <libgnomeui/gnome-canvas.h> #include <gtk/gtksignal.h> #include <gnome-xml/parser.h> +#include <gnome-xml/xmlmemory.h> #include "e-util/e-util.h" #include "e-util/e-xml-utils.h" #include "e-util/e-canvas.h" @@ -313,7 +314,12 @@ et_xml_to_header (ETable *e_table, ETableHeader *full_header, xmlNode *xmlColumn nh = e_table_header_new (); for (column = xmlColumns->childs; column; column = column->next) { - int col = atoi (column->childs->content); + gchar *content; + int col; + + content = xmlNodeListGetString (column->doc, column->childs, 1); + col = atoi (content); + xmlFree (content); if (col >= max_cols) continue; |