From e8800b47ce0947538624f76b5a6c024e155e829c Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 2 Feb 2004 21:36:40 +0000 Subject: clear attr->encoding_set and attr->encoding, since that is just cached 2004-02-02 Chris Toshok * libebook/e-vcard.c (e_vcard_attribute_remove_params): clear attr->encoding_set and attr->encoding, since that is just cached information from the attribute parameters. Fixes a spurious g_warning. --- addressbook/ChangeLog | 7 +++++++ addressbook/libebook/e-vcard.c | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 6181de1c0..ebbfd2eb7 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2004-02-02 Chris Toshok + + * libebook/e-vcard.c (e_vcard_attribute_remove_params): clear + attr->encoding_set and attr->encoding, since that is just cached + information from the attribute parameters. Fixes a spurious + g_warning. + 2004-02-02 Chris Toshok * libebook/e-vcard.c (e_vcard_attribute_remove_values): make sure diff --git a/addressbook/libebook/e-vcard.c b/addressbook/libebook/e-vcard.c index e922524cd..d45290503 100644 --- a/addressbook/libebook/e-vcard.c +++ b/addressbook/libebook/e-vcard.c @@ -1011,6 +1011,10 @@ e_vcard_attribute_remove_params (EVCardAttribute *attr) g_list_foreach (attr->params, (GFunc)e_vcard_attribute_param_free, NULL); g_list_free (attr->params); attr->params = NULL; + + /* also remove the cached encoding on this attribute */ + attr->encoding_set = FALSE; + attr->encoding = EVC_ENCODING_RAW; } EVCardAttributeParam* -- cgit v1.2.1