aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-cards.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 18ef942ed5..b9604e32b2 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2005-07-29 Srinivasa Ragavan <sragavan@novell.com>
+ * tools/evolution-addressbook-export-list-cards.c: (output_n_cards_file)
+ Fixes the bug #269870. Commiting Michael Meeks patch.
+
+2005-07-29 Srinivasa Ragavan <sragavan@novell.com>
+
* gui/contact-editor/e-contact-editor.c: (extract_simple_field) (image_selected)
Fixed in a genereic way, the resizing of contact photos
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);