From 46e7ac7b716ae60de5988de2c455b0fb37c51339 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 29 Jul 2005 05:46:30 +0000 Subject: Fixes the bug #269870. Commiting Michael Meeks patch. 2005-07-29 Srinivasa Ragavan * tools/evolution-addressbook-export-list-cards.c: (output_n_cards_file) Fixes the bug #269870. Commiting Michael Meeks patch. svn path=/trunk/; revision=29928 --- addressbook/ChangeLog | 5 +++++ addressbook/tools/evolution-addressbook-export-list-cards.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 18ef942ed5..b9604e32b2 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2005-07-29 Srinivasa Ragavan + + * tools/evolution-addressbook-export-list-cards.c: (output_n_cards_file) + Fixes the bug #269870. Commiting Michael Meeks patch. + 2005-07-29 Srinivasa Ragavan * gui/contact-editor/e-contact-editor.c: (extract_simple_field) (image_selected) diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c index 88923fd244..758ed42eb2 100644 --- a/addressbook/tools/evolution-addressbook-export-list-cards.c +++ b/addressbook/tools/evolution-addressbook-export-list-cards.c @@ -590,7 +590,12 @@ output_n_cards_file (FILE * outputfile, GList *contacts, int size, int begin_no, g_free (vcard); } } else if (format == CARD_FORMAT_CSV) { - gchar *csv_fields_name = e_contact_csv_get_header_line (pre_defined_fields); + gchar *csv_fields_name; + + if (!pre_defined_fields) + set_pre_defined_field (&pre_defined_fields); + + csv_fields_name = e_contact_csv_get_header_line (pre_defined_fields); fprintf (outputfile, "%s\n", csv_fields_name); g_free (csv_fields_name); -- cgit v1.2.3